Moving various nav-bar configs out of feature flags

Bug: 332588958
Test: Presubmit
Flag: None
Change-Id: Ia4dc5b69bcf4d461e3444b9e37bb7334bb74aae4
This commit is contained in:
Sunny Goyal
2024-04-05 12:54:32 -07:00
parent 962b3d43ea
commit 89931316a2
22 changed files with 514 additions and 556 deletions

View File

@@ -18,12 +18,8 @@ package com.android.launcher3.uioverrides.flags;
import static com.android.launcher3.config.FeatureFlags.FlagState.ENABLED;
import androidx.annotation.Nullable;
import com.android.launcher3.ConstantItem;
import com.android.launcher3.config.FeatureFlags.BooleanFlag;
import com.android.launcher3.config.FeatureFlags.FlagState;
import com.android.launcher3.config.FeatureFlags.IntFlag;
import java.io.PrintWriter;
@@ -49,23 +45,6 @@ public class FlagsFactory {
return new BooleanFlag(flagState == ENABLED);
}
/**
* Creates a new integer flag. Integer flags are always release flags
*/
public static IntFlag getIntFlag(
int bugId, String key, int defaultValueInCode, String description) {
return new IntFlag(defaultValueInCode);
}
/**
* Creates a new debug integer flag and it is saved in LauncherPrefs.
*/
public static IntFlag getIntFlag(
int bugId, String key, int defaultValueInCode, String description,
@Nullable ConstantItem<Integer> launcherPrefFlag) {
return new IntFlag(defaultValueInCode);
}
/**
* Dumps the current flags state to the print writer
*/