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

Commit 1529f0dd authored by Evan Rosky's avatar Evan Rosky Committed by Android (Google) Code Review
Browse files

Merge "Don't wait for windows which are goneForLayout"

parents 28a10589 b1574e7a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5863,6 +5863,10 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
    @Override
    boolean prepareForSync(BLASTSyncEngine.TransactionReadyListener waitingListener,
            int waitingId) {
        // If the window is goneForLayout, relayout won't be called so we'd just wait forever.
        if (isGoneForLayout()) {
            return false;
        }
        boolean willSync = setPendingListener(waitingListener, waitingId);
        if (!willSync) {
            return false;