Merge "Rename removeBubble method to clarify it is for dismissing via drag" into main

This commit is contained in:
Ats Jenk authored and Android (Google) Code Review committed 2024-05-16 22:00:56 +00:00
commit 5719808945
3 files changed
+19 -22

No files matched your search

@@ -506,12 +506,10 @@ public class BubbleBarViewController {
/**
* Notifies SystemUI to expand the selected bubble when the bubble is released.
* @param bubbleView dragged bubble view
*/
public void onDragRelease(@NonNull BubbleView bubbleView, BubbleBarLocation location) {
if (bubbleView.getBubble() == null) return;
public void onDragRelease(BubbleBarLocation location) {
// TODO(b/330585402): send new bubble bar bounds to shell for the animation
mSystemUiProxy.stopBubbleDrag(bubbleView.getBubble().getKey(), location);
mSystemUiProxy.stopBubbleDrag(location);
}
/**
@@ -556,7 +554,7 @@ public class BubbleBarViewController {
* @param bubble dismissed bubble item
*/
public void onDismissBubbleWhileDragging(@NonNull BubbleBarItem bubble) {
mSystemUiProxy.removeBubble(bubble.getKey());
mSystemUiProxy.dragBubbleToDismiss(bubble.getKey());
}
/**