Merge "Fix dead surface/window left on screen" into nyc-dev

This commit is contained in:
Chong Zhang
2016-04-21 17:58:50 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 1 deletions

View File

@@ -4258,7 +4258,6 @@ public class WindowManagerService extends IWindowManager.Stub
WindowManagerPolicy.TRANSIT_EXIT);
}
}
win.mAnimatingExit = true;
changed = true;
win.setDisplayLayoutNeeded();
}

View File

@@ -100,6 +100,8 @@ class WindowSurfaceController {
void hideInTransaction(String reason) {
if (SHOW_TRANSACTIONS) logSurface("HIDE ( " + reason + " )", null);
mHiddenForOtherReasons = true;
mAnimator.destroyPreservedSurfaceLocked();
updateVisibility();
}
@@ -180,6 +182,7 @@ class WindowSurfaceController {
updateVisibility();
} else {
mHiddenForCrop = true;
mAnimator.destroyPreservedSurfaceLocked();
updateVisibility();
}
} catch (RuntimeException e) {