Merge "Revert "Add feature flag to control two panel home in portrait"" into sc-v2-dev am: 42f111dc27
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16279502 Change-Id: I69f25262f5ae58304c8b1c0615cf9510221f6ef3
This commit is contained in:
@@ -251,8 +251,7 @@ public class DeviceProfile {
|
||||
// Tablet UI does not support emulated landscape.
|
||||
isTablet = allowRotation && info.isTablet(windowBounds);
|
||||
isPhone = !isTablet;
|
||||
isTwoPanels = isTablet && useTwoPanels
|
||||
&& (isLandscape || FeatureFlags.ENABLE_TWO_PANEL_HOME_IN_PORTRAIT.get());
|
||||
isTwoPanels = isTablet && useTwoPanels;
|
||||
|
||||
aspectRatio = ((float) Math.max(widthPx, heightPx)) / Math.min(widthPx, heightPx);
|
||||
boolean isTallDevice = Float.compare(aspectRatio, TALL_DEVICE_ASPECT_RATIO_THRESHOLD) >= 0;
|
||||
|
||||
@@ -210,10 +210,6 @@ public final class FeatureFlags {
|
||||
"ENABLE_TWO_PANEL_HOME", true,
|
||||
"Uses two panel on home screen. Only applicable on large screen devices.");
|
||||
|
||||
public static final BooleanFlag ENABLE_TWO_PANEL_HOME_IN_PORTRAIT = getDebugFlag(
|
||||
"ENABLE_TWO_PANEL_HOME_IN_PORTRAIT", true,
|
||||
"Uses two panel on home screen in portrait if ENABLE_TWO_PANEL_HOME is enabled.");
|
||||
|
||||
public static final BooleanFlag ENABLE_SCRIM_FOR_APP_LAUNCH = getDebugFlag(
|
||||
"ENABLE_SCRIM_FOR_APP_LAUNCH", false,
|
||||
"Enables scrim during app launch animation.");
|
||||
|
||||
Reference in New Issue
Block a user