diff options
author | Rohan Shah <shahrk@google.com> | 2018-02-20 11:27:22 -0800 |
---|---|---|
committer | Rohan Shah <shahrk@google.com> | 2018-02-21 10:12:33 -0800 |
commit | db2cfa36097e01a94c75d11c913424816c92b447 (patch) | |
tree | b458b425ee53bf7180a7875563c48fe9c10484b5 /packages/SystemUI/src/com/android/systemui/Prefs.java | |
parent | 29f1cdd5d3acc79a787e372cac02f7e216ea033e (diff) |
[QS] Add header tooltip for long press
Added some hooks in animator to pass along expanded/animating/collapsed
state in a more clear manner. Added tooltip view with the teaser text to
animate in at the top of the view (and fade out either when we start
animating or automatically after 5 seconds).
Added prefs for tracking how often tooltip is shown/hiding it based on
that number.
Updated dimensions for correct spacing (based on redlines).
Test: Visually
Bug: 72528203
Change-Id: I70e4654ed95057fac6d8dbb890d575c2a5d9f215
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/Prefs.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/Prefs.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/Prefs.java b/packages/SystemUI/src/com/android/systemui/Prefs.java index adb4e33d1a19..8b577400357d 100644 --- a/packages/SystemUI/src/com/android/systemui/Prefs.java +++ b/packages/SystemUI/src/com/android/systemui/Prefs.java @@ -47,6 +47,7 @@ public final class Prefs { Key.QS_INVERT_COLORS_ADDED, Key.QS_WORK_ADDED, Key.QS_NIGHTDISPLAY_ADDED, + Key.QS_LONG_PRESS_TOOLTIP_SHOWN_COUNT, Key.SEEN_MULTI_USER, Key.NUM_APPS_LAUNCHED, Key.HAS_SEEN_RECENTS_ONBOARDING, @@ -76,6 +77,11 @@ public final class Prefs { String QS_WORK_ADDED = "QsWorkAdded"; @Deprecated String QS_NIGHTDISPLAY_ADDED = "QsNightDisplayAdded"; + /** + * Used for tracking how many times the user has seen the long press tooltip in the Quick + * Settings panel. + */ + String QS_LONG_PRESS_TOOLTIP_SHOWN_COUNT = "QsLongPressTooltipShownCount"; String SEEN_MULTI_USER = "HasSeenMultiUser"; String NUM_APPS_LAUNCHED = "NumAppsLaunched"; String HAS_SEEN_RECENTS_ONBOARDING = "HasSeenRecentsOnboarding"; |