Merge "Clearing mDestroying flag when app is made visible again" into nyc-dev

am: 3dbcd203c5

* commit '3dbcd203c57e9845582b59d9d5914bd6df7d2e1f':
  Clearing mDestroying flag when app is made visible again
This commit is contained in:
Chong Zhang
2016-02-13 18:14:25 +00:00
committed by android-build-merger

View File

@@ -310,6 +310,11 @@ class AppWindowToken extends WindowToken {
if (!(win.mRemoveOnExit && win.mExiting)) {
win.mExiting = exiting;
}
// If we're no longer exiting, remove the window from destroying list
if (!win.mExiting && win.mDestroying) {
win.mDestroying = false;
service.mDestroySurface.remove(win);
}
}
}
@@ -326,7 +331,7 @@ class AppWindowToken extends WindowToken {
}
if (!mAppStopped && !win.mClientRemoveRequested) {
return;
continue;
}
win.destroyOrSaveSurface();