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

Commit deb7cd54 authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

Remove FeatureFlags.STYLE_WALLPAPERS

Bug: 129874298
Change-Id: I2785f1e49a4ff60143cc763c3dac0c1bb33b41c8
parent 4736b17a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@ public class FlagOverrideSampleTest {
    @Test
    public void withFlagOn() {
        assertTrue(FeatureFlags.EXAMPLE_FLAG.get());
        assertFalse(FeatureFlags.STYLE_WALLPAPER.get());
    }


+0 −4
Original line number Diff line number Diff line
@@ -90,10 +90,6 @@ abstract class BaseFlags {
    // trying to make them fit the orientation the device is in.
    public static final boolean OVERVIEW_USE_SCREENSHOT_ORIENTATION = true;

    public static final ToggleableGlobalSettingsFlag STYLE_WALLPAPER
            = new ToggleableGlobalSettingsFlag("STYLE_WALLPAPER", false,
            "Direct users to the new ThemePicker based WallpaperPicker");

    /**
     * Feature flag to handle define config changes dynamically instead of killing the process.
     */
+2 −2
Original line number Diff line number Diff line
@@ -152,7 +152,7 @@ public class OptionsPopupView extends ArrowPopup
        RectF target = new RectF(x - halfSize, y - halfSize, x + halfSize, y + halfSize);

        ArrayList<OptionItem> options = new ArrayList<>();
        int res = FeatureFlags.STYLE_WALLPAPER.get() && existsStyleWallpapers(launcher) ?
        int res = existsStyleWallpapers(launcher) ?
                R.string.styles_wallpaper_button_text : R.string.wallpaper_button_text;
        options.add(new OptionItem(res, R.drawable.ic_wallpaper,
                ControlType.WALLPAPER_BUTTON, OptionsPopupView::startWallpaperPicker));
@@ -210,7 +210,7 @@ public class OptionsPopupView extends ArrowPopup
                .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK)
                .putExtra(EXTRA_WALLPAPER_OFFSET,
                        launcher.getWorkspace().getWallpaperOffsetForCenterPage());
        if (!FeatureFlags.STYLE_WALLPAPER.get()) {
        if (!existsStyleWallpapers(launcher)) {
            intent.putExtra(EXTRA_WALLPAPER_FLAVOR, "wallpaper_only");
        }
        String pickerPackage = launcher.getString(R.string.wallpaper_picker_package);