Merge "Use enableSplitContextually() to guard split keyboard shortcut feature" into main

This commit is contained in:
Tracy Zhou
2023-11-30 18:43:13 +00:00
committed by Android (Google) Code Review
3 changed files with 3 additions and 14 deletions
@@ -16,7 +16,6 @@
package com.android.quickstep.util;
import static com.android.launcher3.config.FeatureFlags.enableSplitFromFullscreenWithKeyboardShortcuts;
import static com.android.launcher3.util.Executors.MODEL_EXECUTOR;
import static com.android.quickstep.views.DesktopTaskView.isDesktopModeSupported;
@@ -190,8 +189,7 @@ public class SplitToWorkspaceController {
}
private boolean shouldIgnoreSecondSplitLaunch() {
return (!enableSplitFromFullscreenWithKeyboardShortcuts()
&& !FeatureFlags.enableSplitContextually()
return (!FeatureFlags.enableSplitContextually()
&& !isDesktopModeSupported())
|| !mController.isSplitSelectActive();
}
@@ -16,7 +16,7 @@
package com.android.quickstep.util;
import static com.android.launcher3.config.FeatureFlags.enableSplitFromFullscreenWithKeyboardShortcuts;
import static com.android.launcher3.config.FeatureFlags.enableSplitContextually;
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_KEYBOARD_SHORTCUT_SPLIT_LEFT_TOP;
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_KEYBOARD_SHORTCUT_SPLIT_RIGHT_BOTTOM;
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
@@ -75,7 +75,7 @@ public class SplitWithKeyboardShortcutController {
@BinderThread
public void enterStageSplit(boolean leftOrTop) {
if (!enableSplitFromFullscreenWithKeyboardShortcuts()) {
if (!enableSplitContextually()) {
return;
}
RecentsAnimationCallbacks callbacks = new RecentsAnimationCallbacks(