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:
1 parent
270e1c3dc4
commit
5140e8ca7e
6 files changed
+29
-16
No files matched your search
@@ -407,11 +407,13 @@ public class BubbleBarView extends FrameLayout {
|
||||
return true;
|
||||
}
|
||||
if (action == R.id.action_move_left) {
|
||||
mController.updateBubbleBarLocation(BubbleBarLocation.LEFT);
|
||||
mController.updateBubbleBarLocation(BubbleBarLocation.LEFT,
|
||||
BubbleBarLocation.UpdateSource.A11Y_ACTION_BAR);
|
||||
return true;
|
||||
}
|
||||
if (action == R.id.action_move_right) {
|
||||
mController.updateBubbleBarLocation(BubbleBarLocation.RIGHT);
|
||||
mController.updateBubbleBarLocation(BubbleBarLocation.RIGHT,
|
||||
BubbleBarLocation.UpdateSource.A11Y_ACTION_BAR);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -1560,6 +1562,7 @@ public class BubbleBarView extends FrameLayout {
|
||||
void dismissBubbleBar();
|
||||
|
||||
/** Requests the controller to update bubble bar location to the given value */
|
||||
void updateBubbleBarLocation(BubbleBarLocation location);
|
||||
void updateBubbleBarLocation(BubbleBarLocation location,
|
||||
@BubbleBarLocation.UpdateSource int source);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user