From 11a8ed8a53c98a85aa240532fc705b358ebf7e51 Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Tue, 10 Sep 2024 10:49:30 -0700 Subject: [PATCH] Disallow long click on taskbar icons while animating home. Fixes: 360778703 Test: swipe up to home, long click on taskbar icon before it settles Flag: EXEMPT bugfix Change-Id: I3c46b43b6b9c44b91c2516c9db453d3fa3692b00 --- .../launcher3/taskbar/TaskbarLauncherStateController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java index 0eb88903e1..b2bee527f1 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java @@ -374,7 +374,7 @@ public class TaskbarLauncherStateController { private void updateOverviewDragState(LauncherState launcherState) { boolean disallowLongClick = FeatureFlags.enableSplitContextually() - ? mLauncher.isSplitSelectionActive() + ? mLauncher.isSplitSelectionActive() || mIsAnimatingToLauncher : launcherState == LauncherState.OVERVIEW_SPLIT_SELECT; com.android.launcher3.taskbar.Utilities.setOverviewDragState( mControllers, launcherState.disallowTaskbarGlobalDrag(),