Re-fetch DesktopVisibilityController when needed instead of just once
When creating DesktopTaskbarRunningAppsController the Quickstep Launcher might not be available, meaning we pass a null DesktopVisibilityController to DesktopTaskbarRunningAppsController. With this CL we refetch DesktopVisibilityController whenever needed. Bug: 338035946 Test: manual, and DesktopTaskbarRunningAppsControllerTest Flag: ACONFIG com.android.window.flags.Flags.enableDesktopWindowingTaskbarRunningApps DEVELOPMENT Change-Id: I8b806e2d0addbf8fb5ab6a3d419a4691c445f223
This commit is contained in:
1 parent
0eaf9ebdaa
commit
f74d8b7264
3 files changed
+10
-3
No files matched your search
@@ -312,7 +312,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
if (enableDesktopWindowingMode() && enableDesktopWindowingTaskbarRunningApps()) {
|
||||
return new DesktopTaskbarRunningAppsController(
|
||||
RecentsModel.INSTANCE.get(this),
|
||||
LauncherActivityInterface.INSTANCE.getDesktopVisibilityController());
|
||||
LauncherActivityInterface.INSTANCE::getDesktopVisibilityController);
|
||||
}
|
||||
return TaskbarRecentAppsController.DEFAULT;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user