Skip to content

Commit 0059d35

Browse files
author
Craig Mautner
committed
Fix black screen on app transition.
The layer adjustment to an animating window upon completion was masking the window behind the mWindowAnimationBackgroundSurface, a DimSurface. The DimSurface was not being hidden because the step was happening too late. Swapping the order of performAnimationsLocked and updateWindowsAppsAndRotationAnimationsLocked fixes this ordering issue. Fixes bug 6185920. Change-Id: I0ff64c019e821fa3a92505ac6351f2648897e592
1 parent 1dd3ed0 commit 0059d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/wm/WindowManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7688,9 +7688,9 @@ private void animateAndUpdateSurfaces(final long currentTime, final int dw, fina
76887688
Surface.openTransaction();
76897689

76907690
try {
7691+
updateWindowsAppsAndRotationAnimationsLocked(currentTime, innerDw, innerDh);
76917692
mPendingLayoutChanges = performAnimationsLocked(currentTime, dw, dh,
76927693
innerDw, innerDh);
7693-
updateWindowsAppsAndRotationAnimationsLocked(currentTime, innerDw, innerDh);
76947694

76957695
// THIRD LOOP: Update the surfaces of all windows.
76967696

0 commit comments

Comments
 (0)