Handle running task launch properly in desktop mode

- Move logic from KeyboardQuickSwitchViewController to handle
  bringing desktop tasks to front, and still support recent
  tasks for non-desktop mode.

Flag: com.android.launcher3.enable_recents_in_taskbar
Test: manually launch tasks from the Recents section in both
Desktop mode and full screen mode (running vs recent)
Bug: 315354060

Change-Id: I0520351b4d0095a3538c6165acd82a7b4c45a5e2
This commit is contained in:
Tony Wickham committed 2024-06-19 00:25:45 +00:00
1 parent ff83f1c448
commit 4e1befb394
3 files changed
+45 -35

No files matched your search

@@ -182,6 +182,11 @@ public class DisplayController implements ComponentCallbacks, SafeCloseable {
return INSTANCE.get(context).getInfo().isTransientTaskbar();
}
/** Returns whether we are currently in Desktop mode. */
public static boolean isInDesktopMode(Context context) {
return INSTANCE.get(context).getInfo().isInDesktopMode();
}
/**
* Handles info change for desktop mode.
*/