From 924c21582c666151e01206df82c27de9424e914a Mon Sep 17 00:00:00 2001 From: Craig Mautner Date: Mon, 23 Apr 2012 18:14:07 -0700 Subject: Set mOrientationChangeComplete after windows drawn. Force a pass through layout with mOrientationChangeComplete set following all windows drawn when the application is freezing the screen. This fixes bug 6359311. Change-Id: I318864fb687cf85a0c9ac4478e4f29dc20f43d9c --- services/java/com/android/server/wm/WindowAnimator.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'services') diff --git a/services/java/com/android/server/wm/WindowAnimator.java b/services/java/com/android/server/wm/WindowAnimator.java index f946f6c..8333ab5 100644 --- a/services/java/com/android/server/wm/WindowAnimator.java +++ b/services/java/com/android/server/wm/WindowAnimator.java @@ -394,6 +394,8 @@ public class WindowAnimator { "Setting mOrientationChangeComplete=true because wtoken " + wtoken + " numInteresting=" + numInteresting + " numDrawn=" + wtoken.numDrawnWindows); + // This will set mOrientationChangeComplete and cause a pass through layout. + mPendingLayoutChanges |= WindowManagerPolicy.FINISH_LAYOUT_REDO_WALLPAPER; } } else if (!wtoken.allDrawn) { int numInteresting = wtoken.numInterestingWindows; -- cgit v1.1