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

Commit fd31b08d authored by Catherine Liang's avatar Catherine Liang
Browse files

Define flag for wallpaper preview loading animation (2/3)

This flag is owned in System UI and served to Wallpaper Picker (WPP)
through the customization content provider.

Bug: 274443705
Test: manually made sure that I can read the flag value in wallpaper
picker and its value matches whatever I set the flag to.

Change-Id: I4fa8e2bf238798be4f2ad87cf83fc65d78091e19
parent fbcbb80f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -190,6 +190,10 @@ object CustomizationProviderContract {
        /** Flag denoting transit clock are enabled in wallpaper picker. */
        const val FLAG_NAME_PAGE_TRANSITIONS = "wallpaper_picker_page_transitions"

        /** Flag denoting whether preview loading animation is enabled. */
        const val FLAG_NAME_WALLPAPER_PICKER_PREVIEW_ANIMATION =
            "wallpaper_picker_preview_animation"

        object Columns {
            /** String. Unique ID for the flag. */
            const val NAME = "name"
+5 −1
Original line number Diff line number Diff line
@@ -413,7 +413,11 @@ constructor(
            KeyguardPickerFlag(
                name = Contract.FlagsTable.FLAG_NAME_PAGE_TRANSITIONS,
                value = featureFlags.isEnabled(Flags.WALLPAPER_PICKER_PAGE_TRANSITIONS)
            )
            ),
            KeyguardPickerFlag(
                name = Contract.FlagsTable.FLAG_NAME_WALLPAPER_PICKER_PREVIEW_ANIMATION,
                value = featureFlags.isEnabled(Flags.WALLPAPER_PICKER_PREVIEW_ANIMATION)
            ),
        )
    }