Merge "Correct error in window lifetime." into nyc-dev

This commit is contained in:
Rob Carr
2016-02-11 23:06:25 +00:00
committed by Android (Google) Code Review

View File

@@ -4236,7 +4236,6 @@ public class WindowManagerService extends IWindowManager.Stub
mOpeningApps.remove(wtoken);
mClosingApps.remove(wtoken);
wtoken.mAppStopped = false;
wtoken.waitingToShow = false;
wtoken.hiddenRequested = !visible;
@@ -4246,6 +4245,8 @@ public class WindowManagerService extends IWindowManager.Stub
// if made visible again.
wtoken.appDied = false;
wtoken.removeAllWindows();
} else if (visible) {
wtoken.mAppStopped = false;
}
// If we are preparing an app transition, then delay changing