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

Commit 7585f8c4 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Move handleCompleteDeferredRemoval to animator thread" into rvc-qpr-dev

parents 6b4185ab 275aba2d
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -994,9 +994,6 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
            }
        }

        // Remove all deferred displays stacks, tasks, and activities.
        handleCompleteDeferredRemoval();

        forAllDisplays(dc -> {
            dc.getInputMonitor().updateInputWindowsLw(true /*force*/);
            dc.updateSystemGestureExclusion();
+3 −0
Original line number Diff line number Diff line
@@ -143,6 +143,9 @@ public class WindowAnimator {
        ProtoLog.i(WM_SHOW_TRANSACTIONS, ">>> OPEN TRANSACTION animate");
        mService.openSurfaceTransaction();
        try {
            // Remove all deferred displays, tasks, and activities.
            mService.mRoot.handleCompleteDeferredRemoval();

            final AccessibilityController accessibilityController =
                    mService.mAccessibilityController;
            final int numDisplays = mDisplayContentsAnimators.size();
+1 −1
Original line number Diff line number Diff line
@@ -1060,7 +1060,7 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
                // descendant. E.g. if a display is pending to be removed because it contains an
                // activity with {@link ActivityRecord#mIsExiting} is true, the display may be
                // removed when completing the removal of the last activity from
                // {@link ActivityRecord#checkCompleteDeferredRemoval}.
                // {@link ActivityRecord#handleCompleteDeferredRemoval}.
                return false;
            }
        }