Support toggling Taskbar All Apps with 3P Launcher.

Taskbar All Apps exists regardless of the default launcher. Thus, we can
toggle it on large screen devices. This CL ties registering the system
action to default launcher and taskbar's enablement.

Test: adb shell input keyevent 117
Test: AllAppsActionManagerTest
Flag: LEGACY ENABLE_ALL_APPS_SEARCH_IN_TASKBAR ENABLED
Fix: 317259709
Change-Id: I26f0ed9e921beac762f3f9e6aaceb1002ad4801a
(cherry picked from commit c113b277e6)
This commit is contained in:
Brian Isganitis
2024-03-14 19:12:50 -04:00
parent 30d9b190d5
commit 176f186a6d
7 changed files with 229 additions and 47 deletions

View File

@@ -413,6 +413,13 @@ public class LauncherTaskbarUIController extends TaskbarUIController {
return mTaskbarLauncherStateController.isInOverview();
}
@Override
protected boolean canToggleHomeAllApps() {
return mLauncher.isResumed()
&& !mTaskbarLauncherStateController.isInOverview()
&& !mLauncher.areFreeformTasksVisible();
}
@Override
public RecentsView getRecentsView() {
return mLauncher.getOverviewPanel();