diff options
author | Mady Mellor <madym@google.com> | 2020-02-07 12:16:21 -0800 |
---|---|---|
committer | Mady Mellor <madym@google.com> | 2020-02-27 22:57:14 +0000 |
commit | 5a3e94b7028e4f53bbcd3500156ab0d66600c8ca (patch) | |
tree | 628fb9f788052c0b8ea4fc8e933bbb5e1a93de16 /packages/SystemUI/src/com/android/systemui/Prefs.java | |
parent | 5b55f124d8d24045ef103dd8eeb767fb376cbd63 (diff) |
Bubbles user education for stack & manage
Two types of education
1) highlighting the bubble when it first appears on screen (after user tap)
2) highlighting manage button when a bubble is expanded
* Both of these are added in BubbleStackView & respond to theme changes
* Prefs to save whether user has seen either education
* Simple animations in / out; we can tune them later
* Adjusts the starting position of the stack to work with user education
positioning
* Adds a secure setting string to force user education to show for demo
purposes.
Test: manual:
1) get bubble for first time
2) tap on flyout => flyout disappears & user education shows
3) get another update to that bubble => note that it doesn't show bc
user education is displaying
1) get bubble for first time
2) tap on bubble => flyout disappears & user education shows
3) tap outside of the user education => user education hides
1) get bubble for first time
2) wait => after flyout disappears, user education shows
3) tap on the bubble => user education hides & bubble expands, after
expansion "manage" user education appears
4a) interact with content in the activity view
4b) collapse the stack (via back or tapping outside)
4c) tap on the manage button
4d) select a different bubble
=> each of 4x) should dismiss the manage button user education
Check that switching themes (and dark mode) gets the right colour for user
education backgrounds & text.
Bug: 148105621
Change-Id: I8e6401573c1ac21dfe636aa1132461fe04ce67ac
Merged-In: I8e6401573c1ac21dfe636aa1132461fe04ce67ac
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, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/Prefs.java b/packages/SystemUI/src/com/android/systemui/Prefs.java index f0a82c519d48..5e6589f76c13 100644 --- a/packages/SystemUI/src/com/android/systemui/Prefs.java +++ b/packages/SystemUI/src/com/android/systemui/Prefs.java @@ -57,7 +57,9 @@ public final class Prefs { Key.SEEN_RINGER_GUIDANCE_COUNT, Key.QS_HAS_TURNED_OFF_MOBILE_DATA, Key.TOUCHED_RINGER_TOGGLE, - Key.HAS_SEEN_ODI_CAPTIONS_TOOLTIP + Key.HAS_SEEN_ODI_CAPTIONS_TOOLTIP, + Key.HAS_SEEN_BUBBLES_EDUCATION, + Key.HAS_SEEN_BUBBLES_MANAGE_EDUCATION }) public @interface Key { @Deprecated @@ -103,6 +105,8 @@ public final class Prefs { String QS_HAS_TURNED_OFF_MOBILE_DATA = "QsHasTurnedOffMobileData"; String TOUCHED_RINGER_TOGGLE = "TouchedRingerToggle"; String HAS_SEEN_ODI_CAPTIONS_TOOLTIP = "HasSeenODICaptionsTooltip"; + String HAS_SEEN_BUBBLES_EDUCATION = "HasSeenBubblesOnboarding"; + String HAS_SEEN_BUBBLES_MANAGE_EDUCATION = "HasSeenBubblesManageOnboarding"; } public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { |