Merge "Ensure window has been added in isTopOfTask" into nyc-dev
This commit is contained in:
@@ -5920,6 +5920,9 @@ public class Activity extends ContextThemeWrapper
|
||||
* @return true if this is the topmost, non-finishing activity in its task.
|
||||
*/
|
||||
private boolean isTopOfTask() {
|
||||
if (mToken == null || mWindow == null || !mWindowAdded) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
return ActivityManagerNative.getDefault().isTopOfTask(mToken);
|
||||
} catch (RemoteException e) {
|
||||
|
||||
Reference in New Issue
Block a user