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:
Mady Mellor
2023-07-07 16:19:27 -07:00
parent 57d68b4834
commit 4e0ec1e458
2 changed files with 31 additions and 15 deletions
@@ -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 */);
}