diff options
author | Fabian Kozynski <kozynski@google.com> | 2020-03-06 09:52:46 -0500 |
---|---|---|
committer | Fabian Kozynski <kozynski@google.com> | 2020-03-09 15:38:27 -0400 |
commit | 75ad41effa37cd16cccda3f336af990a6090d310 (patch) | |
tree | 4f86138b5b6a388f0c984baaa5dfe7f9db666461 /packages/SystemUI/src/com/android/systemui/Prefs.java | |
parent | 61278391c56985864096f133283331dba37dccf2 (diff) |
Adds a tooltip for multiple structures
Adds a tooltip (manager) to display tooltips in Controls surfaces. The
manager supports the following:
* The tooltip will not be shown after a certain number of times. Tracked
by a Shared Pref that is passed to the TooltipManager
* The tooltip will be shown pointing to a given position on screen
* The tooltip can be parametrized to show the arrow pointing up
(default) or down.
Fixes: 150707923
Test: manual
Change-Id: I70e7c38343a16ae6cd887a0fdcfa5b0f896e413e
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/Prefs.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/Prefs.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/Prefs.java b/packages/SystemUI/src/com/android/systemui/Prefs.java index 5e6589f76c13..6aa2326c388a 100644 --- a/packages/SystemUI/src/com/android/systemui/Prefs.java +++ b/packages/SystemUI/src/com/android/systemui/Prefs.java @@ -59,7 +59,8 @@ public final class Prefs { Key.TOUCHED_RINGER_TOGGLE, Key.HAS_SEEN_ODI_CAPTIONS_TOOLTIP, Key.HAS_SEEN_BUBBLES_EDUCATION, - Key.HAS_SEEN_BUBBLES_MANAGE_EDUCATION + Key.HAS_SEEN_BUBBLES_MANAGE_EDUCATION, + Key.CONTROLS_STRUCTURE_SWIPE_TOOLTIP_COUNT }) public @interface Key { @Deprecated @@ -107,6 +108,7 @@ public final class Prefs { String HAS_SEEN_ODI_CAPTIONS_TOOLTIP = "HasSeenODICaptionsTooltip"; String HAS_SEEN_BUBBLES_EDUCATION = "HasSeenBubblesOnboarding"; String HAS_SEEN_BUBBLES_MANAGE_EDUCATION = "HasSeenBubblesManageOnboarding"; + String CONTROLS_STRUCTURE_SWIPE_TOOLTIP_COUNT = "ControlsStructureSwipeTooltipCount"; } public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { |