Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 924c2158 authored by Craig Mautner's avatar Craig Mautner
Browse files

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
parent 1579a67e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;