mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Bubble bar user education
Launcher support for the user education logic described in ag/24587530. Bug: 275077944 Test: TBD Flag: WM_BUBBLE_BAR Change-Id: I2b9a6ecde332de6305ad574c41d8322d8bb5d7ad
This commit is contained in:
@@ -137,6 +137,7 @@ public class BubbleBarController extends IBubblesListener.Stub {
|
||||
private static class BubbleBarViewUpdate {
|
||||
boolean expandedChanged;
|
||||
boolean expanded;
|
||||
boolean shouldShowEducation;
|
||||
String selectedBubbleKey;
|
||||
String suppressedBubbleKey;
|
||||
String unsuppressedBubbleKey;
|
||||
@@ -151,6 +152,7 @@ public class BubbleBarController extends IBubblesListener.Stub {
|
||||
BubbleBarViewUpdate(BubbleBarUpdate update) {
|
||||
expandedChanged = update.expandedChanged;
|
||||
expanded = update.expanded;
|
||||
shouldShowEducation = update.shouldShowEducation;
|
||||
selectedBubbleKey = update.selectedBubbleKey;
|
||||
suppressedBubbleKey = update.suppressedBubbleKey;
|
||||
unsuppressedBubbleKey = update.unsupressedBubbleKey;
|
||||
@@ -366,7 +368,9 @@ public class BubbleBarController extends IBubblesListener.Stub {
|
||||
mBubbleStashController.animateToInitialState(update.expanded);
|
||||
}
|
||||
}
|
||||
|
||||
if (update.shouldShowEducation) {
|
||||
mBubbleBarViewController.prepareToShowEducation();
|
||||
}
|
||||
if (update.expandedChanged) {
|
||||
if (update.expanded != mBubbleBarViewController.isExpanded()) {
|
||||
mBubbleBarViewController.setExpandedFromSysui(update.expanded);
|
||||
|
||||
Reference in New Issue
Block a user