From 3170a2716853835ac4ffcb4825941500d202a058 Mon Sep 17 00:00:00 2001 From: Xiaowen Lei Date: Thu, 24 Feb 2022 21:56:24 +0000 Subject: [PATCH] Add SharedPreferences keys for the nudge to setup dream. Test: atest NudgeToSetupDreamCallbackTest Test: flash device and check manually Bug: 213368707 Change-Id: I2d5b99ebc498772d0595b571c63c2fa0cc808e85 --- packages/SystemUI/src/com/android/systemui/Prefs.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/Prefs.java b/packages/SystemUI/src/com/android/systemui/Prefs.java index 6a60afa8eadfd..ff5715c606b64 100644 --- a/packages/SystemUI/src/com/android/systemui/Prefs.java +++ b/packages/SystemUI/src/com/android/systemui/Prefs.java @@ -71,7 +71,9 @@ public final class Prefs { Key.HAS_SEEN_REVERSE_BOTTOM_SHEET, Key.CONTROLS_STRUCTURE_SWIPE_TOOLTIP_COUNT, Key.HAS_SEEN_ACCESSIBILITY_FLOATING_MENU_DOCK_TOOLTIP, - Key.ACCESSIBILITY_FLOATING_MENU_POSITION + Key.ACCESSIBILITY_FLOATING_MENU_POSITION, + Key.HAS_CLICKED_NUDGE_TO_SETUP_DREAM, + Key.HAS_DISMISSED_NUDGE_TO_SETUP_DREAM }) // TODO: annotate these with their types so {@link PrefsCommandLine} can know how to set them public @interface Key { @@ -115,6 +117,8 @@ public final class Prefs { String HAS_SEEN_ACCESSIBILITY_FLOATING_MENU_DOCK_TOOLTIP = "HasSeenAccessibilityFloatingMenuDockTooltip"; String ACCESSIBILITY_FLOATING_MENU_POSITION = "AccessibilityFloatingMenuPosition"; + String HAS_CLICKED_NUDGE_TO_SETUP_DREAM = "HasClickedNudgeToSetupDream"; + String HAS_DISMISSED_NUDGE_TO_SETUP_DREAM = "HasDismissedNudgeToSetupDream"; } public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) {