Unify calls to sysuiProxy#showBubble into one method
This will make it easier to note that a bubble has been "visited" so that we can hide the update dot (coming in future CL). Test: manual Bug: 269670235 Change-Id: Ie2dbbc478198ece65c05927295d3c3031a7be82e
This commit is contained in:
@@ -112,9 +112,7 @@ public class BubbleBarViewController {
|
||||
setExpanded(false);
|
||||
mBubbleStashController.stashBubbleBar();
|
||||
} else {
|
||||
mBubbleBarController.setSelectedBubble(bubble);
|
||||
int[] bubbleBarCoords = mBarView.getLocationOnScreen();
|
||||
mSystemUiProxy.showBubble(bubble.getKey(), bubbleBarCoords[0], bubbleBarCoords[1]);
|
||||
mBubbleBarController.showAndSelectBubble(bubble);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -291,13 +289,7 @@ public class BubbleBarViewController {
|
||||
if (!isExpanded) {
|
||||
mSystemUiProxy.collapseBubbles();
|
||||
} else {
|
||||
final String selectedKey = mBubbleBarController.getSelectedBubbleKey();
|
||||
if (selectedKey != null) {
|
||||
int[] bubbleBarCoords = mBarView.getLocationOnScreen();
|
||||
mSystemUiProxy.showBubble(selectedKey, bubbleBarCoords[0], bubbleBarCoords[1]);
|
||||
} else {
|
||||
Log.w(TAG, "trying to expand bubbles when there isn't one selected");
|
||||
}
|
||||
mBubbleBarController.showSelectedBubble();
|
||||
mTaskbarStashController.updateAndAnimateTransientTaskbar(true /* stash */,
|
||||
false /* shouldBubblesFollow */);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user