Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6cca371 authored by Thales Lima's avatar Thales Lima Committed by Android (Google) Code Review
Browse files

Merge "Migrate ENABLE_RESPONSIVE_WORKSPACE to aconfig" into main

parents 136bdf80 ca31b610
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -27,3 +27,10 @@ flag {
    description: "Enables cursor hover states for certain elements."
    bug: "243191650"
}

flag {
    name: "enable_responsive_workspace"
    namespace: "launcher"
    description: "Enables new workspace grid calculations method."
    bug: "241386436"
}
+1 −1
Original line number Diff line number Diff line
@@ -888,7 +888,7 @@ public class InvariantDeviceProfile {
            deviceCategory = a.getInt(R.styleable.GridDisplayOption_deviceCategory,
                    DEVICE_CATEGORY_ALL);

            if (FeatureFlags.ENABLE_RESPONSIVE_WORKSPACE.get()) {
            if (FeatureFlags.enableResponsiveWorkspace()) {
                mWorkspaceSpecsId = a.getResourceId(
                        R.styleable.GridDisplayOption_workspaceSpecsId, INVALID_RESOURCE_HANDLE);
                mWorkspaceSpecsTwoPanelId = a.getResourceId(
+5 −0
Original line number Diff line number Diff line
@@ -422,9 +422,14 @@ public final class FeatureFlags {
    // TODO(Block 31): Clean up flags

    // TODO(Block 32): Clean up flags
    // Aconfig migration complete for ENABLE_RESPONSIVE_WORKSPACE.
    @VisibleForTesting
    public static final BooleanFlag ENABLE_RESPONSIVE_WORKSPACE = getDebugFlag(241386436,
            "ENABLE_RESPONSIVE_WORKSPACE", DISABLED,
            "Enables new workspace grid calculations method.");
    public static boolean enableResponsiveWorkspace() {
        return ENABLE_RESPONSIVE_WORKSPACE.get() || Flags.enableResponsiveWorkspace();
    }

    // TODO(Block 33): Clean up flags
    public static final BooleanFlag ENABLE_ALL_APPS_RV_PREINFLATION = getDebugFlag(288161355,