summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2012-04-23 18:14:07 -0700
committerCraig Mautner <cmautner@google.com>2012-04-23 18:14:07 -0700
commit924c21582c666151e01206df82c27de9424e914a (patch)
tree858620a0470dd1dd750057e6e18f02fcdbf058a7 /services
parent1579a67ee9a53740a09e606e071fd571ee627449 (diff)
downloadframeworks_base-924c21582c666151e01206df82c27de9424e914a.zip
frameworks_base-924c21582c666151e01206df82c27de9424e914a.tar.gz
frameworks_base-924c21582c666151e01206df82c27de9424e914a.tar.bz2
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
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/wm/WindowAnimator.java2
1 files changed, 2 insertions, 0 deletions
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;