Skip to content

Commit

Permalink
Merge "Use enableSplitContextually() to guard split keyboard shortcut…
Browse files Browse the repository at this point in the history
… feature" into main
  • Loading branch information
Tracy Zhou authored and Android (Google) Code Review committed Nov 30, 2023
2 parents 31ae3a5 + 6209f34 commit aa75964
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -190,8 +189,7 @@ private void cleanUp() {
}

private boolean shouldIgnoreSecondSplitLaunch() {
return (!enableSplitFromFullscreenWithKeyboardShortcuts()
&& !FeatureFlags.enableSplitContextually()
return (!FeatureFlags.enableSplitContextually()
&& !isDesktopModeSupported())
|| !mController.isSplitSelectActive();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -75,7 +75,7 @@ public SplitWithKeyboardShortcutController(QuickstepLauncher launcher,

@BinderThread
public void enterStageSplit(boolean leftOrTop) {
if (!enableSplitFromFullscreenWithKeyboardShortcuts()) {
if (!enableSplitContextually()) {
return;
}
RecentsAnimationCallbacks callbacks = new RecentsAnimationCallbacks(
Expand Down
9 changes: 0 additions & 9 deletions src/com/android/launcher3/config/FeatureFlags.java
Original file line number Diff line number Diff line change
Expand Up @@ -432,15 +432,6 @@ public static boolean enableHomeTransitionListener() {
"USE_LOCAL_ICON_OVERRIDES", ENABLED,
"Use inbuilt monochrome icons if app doesn't provide one");

// Aconfig migration complete for ENABLE_SPLIT_FROM_FULLSCREEN_WITH_KEYBOARD_SHORTCUTS.
public static final BooleanFlag ENABLE_SPLIT_FROM_FULLSCREEN_WITH_KEYBOARD_SHORTCUTS =
getDebugFlag(270394122, "ENABLE_SPLIT_FROM_FULLSCREEN_SHORTCUT", DISABLED,
"Enable splitting from fullscreen app with keyboard shortcuts");
public static boolean enableSplitFromFullscreenWithKeyboardShortcuts() {
return ENABLE_SPLIT_FROM_FULLSCREEN_WITH_KEYBOARD_SHORTCUTS.get()
|| Flags.enableSplitFromFullscreenWithKeyboardShortcuts();
}

// Aconfig migration complete for ENABLE_SPLIT_FROM_WORKSPACE_TO_WORKSPACE.
public static final BooleanFlag ENABLE_SPLIT_FROM_WORKSPACE_TO_WORKSPACE = getDebugFlag(
270393453, "ENABLE_SPLIT_FROM_WORKSPACE_TO_WORKSPACE", DISABLED,
Expand Down

0 comments on commit aa75964

Please sign in to comment.