Send bubble bar location update source to shell
Shell can use the location update trigger information for logging purposes. Bug: 349845968 Test: manual Flag: com.android.wm.shell.enable_bubble_bar Change-Id: I5af4375f88ea438b1aed9b3b2bd02d0c33fff53f
This commit is contained in:
@@ -161,7 +161,8 @@ public class BubbleDragController {
|
||||
|
||||
@Override
|
||||
void onDragEnd() {
|
||||
mBubbleBarController.updateBubbleBarLocation(mReleasedLocation);
|
||||
mBubbleBarController.updateBubbleBarLocation(mReleasedLocation,
|
||||
BubbleBarLocation.UpdateSource.DRAG_BUBBLE);
|
||||
mBubbleBarViewController.onBubbleDragEnd();
|
||||
mBubblePinController.setListener(null);
|
||||
}
|
||||
@@ -226,7 +227,8 @@ public class BubbleDragController {
|
||||
@Override
|
||||
void onDragEnd() {
|
||||
// Make sure to update location as the first thing. Pivot update causes a relayout
|
||||
mBubbleBarController.updateBubbleBarLocation(mReleasedLocation);
|
||||
mBubbleBarController.updateBubbleBarLocation(mReleasedLocation,
|
||||
BubbleBarLocation.UpdateSource.DRAG_BAR);
|
||||
bubbleBarView.setIsDragging(false);
|
||||
// Restoring the initial pivot for the bubble bar view
|
||||
bubbleBarView.setRelativePivot(initialRelativePivot.x, initialRelativePivot.y);
|
||||
|
||||
Reference in New Issue
Block a user