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

Commit 916745da authored by Winson Chung's avatar Winson Chung
Browse files

Fix zordering of recents input consumer

- It should be above the top activity of the task

Bug: 195427335
Test: atest RecentsAnimationControllerTest
Change-Id: Ic2c3a236541d5644f5b34e1c63b10e5e20eaf5f5
parent 7ca2837a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -543,7 +543,7 @@ final class InputMonitor {
                if (recentsAnimationController.updateInputConsumerForApp(
                        mRecentsAnimationInputConsumer.mWindowHandle)) {
                    mRecentsAnimationInputConsumer.show(mInputTransaction,
                            recentsAnimationController.getHighestLayerTask());
                            recentsAnimationController.getHighestLayerActivity());
                    mAddRecentsAnimationInputConsumerHandle = false;
                }
            }
+3 −3
Original line number Diff line number Diff line
@@ -1103,9 +1103,9 @@ public class RecentsAnimationController implements DeathRecipient {
    }

    /**
     * Returns the task with the highest layer, or null if none is found.
     * Returns the activity with the highest layer, or null if none is found.
     */
    public Task getHighestLayerTask() {
    public ActivityRecord getHighestLayerActivity() {
        int highestLayer = Integer.MIN_VALUE;
        Task highestLayerTask = null;
        for (int i = mPendingAnimations.size() - 1; i >= 0; i--) {
@@ -1116,7 +1116,7 @@ public class RecentsAnimationController implements DeathRecipient {
                highestLayerTask = adapter.mTask;
            }
        }
        return highestLayerTask;
        return highestLayerTask.getTopMostActivity();
    }

    boolean isAnimatingTask(Task task) {