diff options
| author | Craig Mautner <cmautner@google.com> | 2012-04-18 14:04:38 -0700 |
|---|---|---|
| committer | Craig Mautner <cmautner@google.com> | 2012-04-18 14:04:38 -0700 |
| commit | 9546e457fcfed1da9448d72758642793d9e271bb (patch) | |
| tree | 206f44a853d1903f9aee1b959b9cef13918ad872 | |
| parent | a51a9564fd53b661446cd63eea23208656acc678 (diff) | |
| download | frameworks_base-9546e457fcfed1da9448d72758642793d9e271bb.zip frameworks_base-9546e457fcfed1da9448d72758642793d9e271bb.tar.gz frameworks_base-9546e457fcfed1da9448d72758642793d9e271bb.tar.bz2 | |
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
| -rw-r--r-- | services/java/com/android/server/wm/WindowStateAnimator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/wm/WindowStateAnimator.java b/services/java/com/android/server/wm/WindowStateAnimator.java index 0a7e7fd..3a51afe 100644 --- a/services/java/com/android/server/wm/WindowStateAnimator.java +++ b/services/java/com/android/server/wm/WindowStateAnimator.java @@ -978,7 +978,7 @@ class WindowStateAnimator { setSurfaceBoundaries(recoveringMemory); - if (w.mAttachedHidden || !w.isReadyForDisplay()) { + if (w.mAttachedHidden || !w.isReadyForDisplay() || !w.isDrawnLw()) { if (!mLastHidden) { //dump(); mLastHidden = true; |
