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

Commit 47e8a772 authored by Mateusz Cicheński's avatar Mateusz Cicheński Committed by Android (Google) Code Review
Browse files

Merge "Ignore the Recents animation target when collecting keep clear areas." into tm-qpr-dev

parents 4805fa7d 04c355ad
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -5669,7 +5669,16 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
    void getKeepClearAreas(Set<Rect> outRestricted, Set<Rect> outUnrestricted) {
        final Matrix tmpMatrix = new Matrix();
        final float[] tmpFloat9 = new float[9];
        final RecentsAnimationController recentsAnimationController =
                mWmService.getRecentsAnimationController();
        forAllWindows(w -> {
            // Skip the window if it is part of Recents animation
            final boolean ignoreRecentsAnimationTarget = recentsAnimationController != null
                    && recentsAnimationController.shouldApplyInputConsumer(w.getActivityRecord());
            if (ignoreRecentsAnimationTarget) {
                return false;  // continue traversal
            }

            if (w.isVisible() && !w.inPinnedWindowingMode()) {
                w.getKeepClearAreas(outRestricted, outUnrestricted, tmpMatrix, tmpFloat9);
            }