Merge \"Use getActivityToken() instead of mToken in isTopOfTask\" into nyc-dev

am: 723e5afa9e

Change-Id: I12f294f42e135fc181f585c515cd9ad4589ac1f2
This commit is contained in:
Chong Zhang
2016-06-08 01:19:03 +00:00
committed by android-build-merger

View File

@@ -5952,7 +5952,7 @@ public class Activity extends ContextThemeWrapper
return false;
}
try {
return ActivityManagerNative.getDefault().isTopOfTask(mToken);
return ActivityManagerNative.getDefault().isTopOfTask(getActivityToken());
} catch (RemoteException e) {
return false;
}