Skip to content

Commit 9546e45

Browse files
author
Craig Mautner
committed
Delay rendering into Surface until draw completed.
Hold off on updating surface with animation until the Surface draw has completed. Previously we were calling Surface.setAlpha/setLayer/ setMatrix prior to the app drawing into the surface. This fixes a bug that caused a flash of the target animation image before the animation had begun. Change-Id: Id9142e09b0b22d631dc002eba4dc787455dea03a
1 parent a51a956 commit 9546e45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ public void prepareSurfaceLocked(final boolean recoveringMemory) {
978978

979979
setSurfaceBoundaries(recoveringMemory);
980980

981-
if (w.mAttachedHidden || !w.isReadyForDisplay()) {
981+
if (w.mAttachedHidden || !w.isReadyForDisplay() || !w.isDrawnLw()) {
982982
if (!mLastHidden) {
983983
//dump();
984984
mLastHidden = true;

0 commit comments

Comments
 (0)