mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Moving various nav-bar configs out of feature flags
Bug: 332588958 Test: Presubmit Flag: None Change-Id: Ia4dc5b69bcf4d461e3444b9e37bb7334bb74aae4
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user