Skip to content

Commit 9cd75d4

Browse files
author
Craig Mautner
committed
Fix visual glitch in app transition.
When dummy animation is being used, set the alpha to 0 or 1 depending on whether the app was previously hidden or visible. Change-Id: I1a4e3cdb4b9ca4a6aef58e47bf26e5adbef66a7f
1 parent 1579a67 commit 9cd75d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ boolean stepAnimationLocked(long currentTime, int dw, int dh) {
185185
// it as not animating for purposes of scheduling transactions;
186186
// when it is really time to animate, this will be set to
187187
// a real animation and the next call will execute normally.
188+
hasTransformation = true;
189+
transformation.setAlpha(mAppToken.reportedVisible ? 1 : 0);
188190
return false;
189191
}
190192

0 commit comments

Comments
 (0)