Skip to content

Commit 232301b

Browse files
Craig MautnerAndroid (Google) Code Review
authored andcommitted
Merge "Fix flashy transition in QuickContacts" into jb-dev
2 parents 1c82345 + 94ef9df commit 232301b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ public void setDummyAnimation() {
8585
animation = sDummyAnimation;
8686
animInitialized = false;
8787
}
88+
hasTransformation = true;
89+
transformation.clear();
90+
transformation.setAlpha(mAppToken.reportedVisible ? 1 : 0);
8891
}
8992

9093
public void clearAnimation() {
@@ -186,8 +189,6 @@ boolean stepAnimationLocked(long currentTime, int dw, int dh) {
186189
// it as not animating for purposes of scheduling transactions;
187190
// when it is really time to animate, this will be set to
188191
// a real animation and the next call will execute normally.
189-
hasTransformation = true;
190-
transformation.setAlpha(mAppToken.reportedVisible ? 1 : 0);
191192
return false;
192193
}
193194

0 commit comments

Comments
 (0)