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

This commit is contained in:
Mateusz Cicheński
2022-07-14 23:40:20 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}