mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Support second meta key closing the all apps tray
Bug: 270244718 Test: Tap meta key twice, see all apps tray open an close Change-Id: I6db84aa16b7d21663053bf1b269af6ba36874e47
This commit is contained in:
@@ -22,6 +22,7 @@ import static android.view.MotionEvent.ACTION_POINTER_DOWN;
|
||||
import static android.view.MotionEvent.ACTION_POINTER_UP;
|
||||
import static android.view.MotionEvent.ACTION_UP;
|
||||
|
||||
import static com.android.launcher3.Launcher.INTENT_ACTION_ALL_APPS_TOGGLE;
|
||||
import static com.android.launcher3.MotionEventsUtils.isTrackpadMultiFingerSwipe;
|
||||
import static com.android.launcher3.config.FeatureFlags.ASSISTANT_GIVES_LAUNCHER_FOCUS;
|
||||
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
|
||||
@@ -514,7 +515,7 @@ public class TouchInteractionService extends Service
|
||||
|
||||
if (isHomeAndOverviewSame) {
|
||||
Intent intent = new Intent(mOverviewComponentObserver.getHomeIntent())
|
||||
.setAction(Intent.ACTION_ALL_APPS);
|
||||
.setAction(INTENT_ACTION_ALL_APPS_TOGGLE);
|
||||
RemoteAction allAppsAction = new RemoteAction(
|
||||
Icon.createWithResource(this, R.drawable.ic_apps),
|
||||
getString(R.string.all_apps_label),
|
||||
|
||||
Reference in New Issue
Block a user