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

Commit dc9e13b3 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Perform all layouts within first loop." into jb-mr1-dev

parents 417b0591 a13a41dc
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -8117,8 +8117,16 @@ public class WindowManagerService extends IWindowManager.Stub
        }
    }

    private boolean mInLayout = false;
    private final void performLayoutAndPlaceSurfacesLocked() {
        do {
            mTraversalScheduled = false;
            performLayoutAndPlaceSurfacesLockedLoop();
            mH.removeMessages(H.DO_TRAVERSAL);
        } while (mTraversalScheduled);
    }

    private boolean mInLayout = false;
    private final void performLayoutAndPlaceSurfacesLockedLoop() {
        if (mInLayout) {
            if (DEBUG) {
                throw new RuntimeException("Recursive call!");