Moving RecentsWindowManager away from taskstackchangelistener

Test: Built and ran locally, tested against various cases, verified with
logs

Flag: com.android.launcher3.enable_fallback_overview_in_window
      com.android.launcher3.enable_launcher_overview_in_window

Bug: 292269949

Change-Id: If90b1f98ad18286fa0c9b9625077237823197967
This commit is contained in:
Randy Pfohl
2025-04-09 22:48:56 +00:00
parent 310b205de2
commit 6abaca4e03
2 changed files with 13 additions and 14 deletions
@@ -865,10 +865,11 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer,
if (overviewCommandHelper != null) {
overviewCommandHelper.clearPendingCommands();
}
PerDisplayRepository<RecentsWindowManager> recentsWindowManagerRepository =
RecentsWindowManager.REPOSITORY_INSTANCE.get(this);
recentsWindowManagerRepository.forEach(/* createIfAbsent= */ true, recentsWindowManager -> {
recentsWindowManager.onNewIntent();
recentsWindowManager.cleanupRecentsWindow();
});
}