diff options
author | Peter_Liang <peterliang@google.com> | 2021-03-28 10:17:40 +0800 |
---|---|---|
committer | Peter_Liang <peterliang@google.com> | 2021-05-11 08:13:09 +0800 |
commit | ae817912c518d27f84c69b6d01b79344bf24da93 (patch) | |
tree | 297fbe661b4dcaf978200ef9e906f4168c55c652 /packages/SystemUI/src/com/android/systemui/Prefs.java | |
parent | 0ca995f3600a82f7fe162f49bfdfe30132faf216 (diff) |
Add the new dock tooltip for accessibility floating menu.
Goal:
Pop up the tooltip to show how to move the menu and
hide after users move the Accessibility floating menu first.
Patch Action:
1. Create new SharedPrefernece for dock tooltip.
Bug: 182532449
Test: atest AccessibilityFloatingMenuViewTest AccessibilityFloatingMenuTest
AnnotationLinkSpanTest AccessibilityFloatingMenuTooltipViewTest
DockTooltipViewTest MigrationTooltipViewTest
Change-Id: I71d29761acd4e9d48f776e5c701149b3ed40fda4
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/Prefs.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/Prefs.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/Prefs.java b/packages/SystemUI/src/com/android/systemui/Prefs.java index 7f183798709c..bf09975bb034 100644 --- a/packages/SystemUI/src/com/android/systemui/Prefs.java +++ b/packages/SystemUI/src/com/android/systemui/Prefs.java @@ -73,7 +73,8 @@ public final class Prefs { Key.TOUCHED_RINGER_TOGGLE, Key.HAS_SEEN_ODI_CAPTIONS_TOOLTIP, Key.HAS_SEEN_REVERSE_BOTTOM_SHEET, - Key.CONTROLS_STRUCTURE_SWIPE_TOOLTIP_COUNT + Key.CONTROLS_STRUCTURE_SWIPE_TOOLTIP_COUNT, + Key.HAS_SEEN_ACCESSIBILITY_FLOATING_MENU_DOCK_TOOLTIP }) // TODO: annotate these with their types so {@link PrefsCommandLine} can know how to set them public @interface Key { @@ -122,6 +123,8 @@ public final class Prefs { String HAS_SEEN_ODI_CAPTIONS_TOOLTIP = "HasSeenODICaptionsTooltip"; String HAS_SEEN_REVERSE_BOTTOM_SHEET = "HasSeenReverseBottomSheet"; String CONTROLS_STRUCTURE_SWIPE_TOOLTIP_COUNT = "ControlsStructureSwipeTooltipCount"; + String HAS_SEEN_ACCESSIBILITY_FLOATING_MENU_DOCK_TOOLTIP = + "HasSeenAccessibilityFloatingMenuDockTooltip"; } public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { |