Simplifying some view iteration methods

Bug: 393703968
Flag: EXEMPT refactor
Test: Presubmit
Change-Id: Ieffa3a66fbf8595d542995c348df578a3aec9083
This commit is contained in:
Sunny Goyal
2025-02-27 11:56:36 -08:00
parent 3848c51edb
commit 476d926972
16 changed files with 136 additions and 202 deletions
@@ -176,6 +176,7 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map.Entry;
/**
* Manages the opening and closing app transitions from Launcher
@@ -1342,9 +1343,9 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
? Collections.EMPTY_LIST
: runningTaskTarget.taskInfo.launchCookies;
return mLauncher.getFirstMatchForAppClose(
return mLauncher.getFirstVisibleElementForAppClose(
StableViewInfo.fromLaunchCookies(launchCookies), packageName,
UserHandle.of(runningTaskTarget.taskInfo.userId), true /* supportsAllAppsState */);
UserHandle.of(runningTaskTarget.taskInfo.userId));
}
private @NonNull RectF getDefaultWindowTargetRect() {