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

am: 289395b1fe

* commit '289395b1feca65fc758384bb2d5c12f1c78500c1':
  Fix dead surface/window left on screen

Change-Id: Idd818246a5ada66abc24806529848d8d25a2e383
This commit is contained in:
Chong Zhang
2016-04-21 18:15:02 +00:00
committed by android-build-merger
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) {