mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Merge "Disable FOLDABLE_SINGLE_PAGE" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
216a765894
@@ -18,7 +18,6 @@ package com.android.launcher3;
|
||||
|
||||
import static com.android.launcher3.LauncherPrefs.GRID_NAME;
|
||||
import static com.android.launcher3.Utilities.dpiFromPx;
|
||||
import static com.android.launcher3.config.FeatureFlags.ENABLE_TWO_PANEL_HOME;
|
||||
import static com.android.launcher3.testing.shared.ResourceUtils.INVALID_RESOURCE_HANDLE;
|
||||
import static com.android.launcher3.util.DisplayController.CHANGE_DENSITY;
|
||||
import static com.android.launcher3.util.DisplayController.CHANGE_NAVIGATION_MODE;
|
||||
@@ -316,7 +315,7 @@ public class InvariantDeviceProfile {
|
||||
int type = displayInfo.supportedBounds.stream()
|
||||
.mapToInt(bounds -> displayInfo.isTablet(bounds) ? flagTablet : flagPhone)
|
||||
.reduce(0, (a, b) -> a | b);
|
||||
if ((type == (flagPhone | flagTablet)) && ENABLE_TWO_PANEL_HOME.get()) {
|
||||
if (type == (flagPhone | flagTablet)) {
|
||||
// device has profiles supporting both phone and table modes
|
||||
return TYPE_MULTI_DISPLAY;
|
||||
} else if (type == flagTablet) {
|
||||
|
||||
@@ -183,16 +183,8 @@ public final class FeatureFlags {
|
||||
"Enables predictive back animation from all apps and widgets to home");
|
||||
|
||||
// TODO(Block 11): Clean up flags
|
||||
public static final BooleanFlag ENABLE_TWO_PANEL_HOME = getDebugFlag(270392643,
|
||||
"ENABLE_TWO_PANEL_HOME", ENABLED,
|
||||
"Uses two panel on home screen. Only applicable on large screen devices.");
|
||||
|
||||
public static final BooleanFlag FOLDABLE_WORKSPACE_REORDER = getDebugFlag(270395070,
|
||||
"FOLDABLE_WORKSPACE_REORDER", DISABLED,
|
||||
"In foldables, when reordering the icons and widgets, is now going to use both sides");
|
||||
|
||||
public static final BooleanFlag FOLDABLE_SINGLE_PAGE = getDebugFlag(270395274,
|
||||
"FOLDABLE_SINGLE_PAGE", ENABLED, "Use a single page for the workspace");
|
||||
"FOLDABLE_SINGLE_PAGE", DISABLED, "Use a single page for the workspace");
|
||||
|
||||
public static final BooleanFlag ENABLE_PARAMETRIZE_REORDER = getDebugFlag(289420844,
|
||||
"ENABLE_PARAMETRIZE_REORDER", DISABLED,
|
||||
|
||||
@@ -178,14 +178,15 @@ public class TwoPanelWorkspaceTest extends AbstractLauncherUiTest {
|
||||
public void testDragIconToPage3() {
|
||||
Workspace workspace = mLauncher.getWorkspace();
|
||||
|
||||
workspace.dragIcon(workspace.getHotseatAppIcon("Phone"), 3);
|
||||
// b/299522368 sometimes the phone app is not present in the hotseat.
|
||||
workspace.dragIcon(workspace.getHotseatAppIcon("Chrome"), 3);
|
||||
|
||||
executeOnLauncher(launcher -> {
|
||||
assertPagesExist(launcher, 0, 1, 2, 3);
|
||||
assertItemsOnPage(launcher, 0, "Play Store", "Maps");
|
||||
assertPageEmpty(launcher, 1);
|
||||
assertPageEmpty(launcher, 2);
|
||||
assertItemsOnPage(launcher, 3, "Phone");
|
||||
assertItemsOnPage(launcher, 3, "Chrome");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user