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

Commit dafd14d9 authored by Federico Baron's avatar Federico Baron
Browse files

Add flags for new home gardening mode

We're going to follow this new design for the home screen edit mode (home gardening): https://docs.google.com/presentation/d/1FOmmCdmGmSMR77_901IOMbvbPVxPmjaAdxZjy-D9tw0/edit#slide=id.g11f697f283a_0_0. This new design will be guarded by this flag.

Bug: 251259222
Test: manual
Change-Id: I36d0d1dddb463154140802b945dd092b072d6eaf
parent d7a7bfc3
Loading
Loading
Loading
Loading
+10 −5
Original line number Original line Diff line number Diff line
@@ -37,7 +37,8 @@ public final class FeatureFlags {


    public static final String FLAGS_PREF_NAME = "featureFlags";
    public static final String FLAGS_PREF_NAME = "featureFlags";


    private FeatureFlags() { }
    private FeatureFlags() {
    }


    public static boolean showFlagTogglerUi(Context context) {
    public static boolean showFlagTogglerUi(Context context) {
        return Utilities.IS_DEBUG_DEVICE && Utilities.isDevelopersOptionsEnabled(context);
        return Utilities.IS_DEBUG_DEVICE && Utilities.isDevelopersOptionsEnabled(context);
@@ -289,6 +290,10 @@ public final class FeatureFlags {
    public static final BooleanFlag POPUP_MATERIAL_U = new DeviceFlag(
    public static final BooleanFlag POPUP_MATERIAL_U = new DeviceFlag(
            "POPUP_MATERIAL_U", false, "Switch popup UX to use material U");
            "POPUP_MATERIAL_U", false, "Switch popup UX to use material U");


    public static final BooleanFlag SHOW_HOME_GARDENING = new DeviceFlag(
            "SHOW_HOME_GARDENING", false,
            "Show the new home gardening mode");

    public static void initialize(Context context) {
    public static void initialize(Context context) {
        synchronized (sDebugFlags) {
        synchronized (sDebugFlags) {
            for (DebugFlag flag : sDebugFlags) {
            for (DebugFlag flag : sDebugFlags) {