Merge "Fix zordering of recents input consumer" into sc-v2-dev am: 895570a43b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15546786

Change-Id: I96c38d58842887219724c78c126b67e8dd133041
This commit is contained in:
Winson Chung
2021-08-13 23:13:46 +00:00
committed by Automerger Merge Worker
2 changed files with 4 additions and 4 deletions

View File

@@ -543,7 +543,7 @@ final class InputMonitor {
if (recentsAnimationController.updateInputConsumerForApp(
mRecentsAnimationInputConsumer.mWindowHandle)) {
mRecentsAnimationInputConsumer.show(mInputTransaction,
recentsAnimationController.getHighestLayerTask());
recentsAnimationController.getHighestLayerActivity());
mAddRecentsAnimationInputConsumerHandle = false;
}
}

View File

@@ -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) {