Merge "Use enableSplitContextually() to guard split keyboard shortcut feature" into main
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user