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
This commit is contained in:
Catherine Liang
2023-07-11 15:47:36 +00:00
parent fbcbb80f73
commit fd31b08d94
2 changed files with 9 additions and 1 deletions

View File

@@ -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"

View File

@@ -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)
),
)
}