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

This commit is contained in:
Chong Zhang
2016-06-08 01:12:25 +00:00
committed by Android (Google) Code Review

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;
}