OSDN Git Service

Set mOrientationChangeComplete after windows drawn.
authorCraig Mautner <cmautner@google.com>
Tue, 24 Apr 2012 01:14:07 +0000 (18:14 -0700)
committerCraig Mautner <cmautner@google.com>
Tue, 24 Apr 2012 01:14:07 +0000 (18:14 -0700)
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

index f946f6c..8333ab5 100644 (file)
@@ -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;