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:
@@ -222,12 +222,14 @@ public class BubbleView extends ConstraintLayout {
|
||||
}
|
||||
if (action == R.id.action_move_left) {
|
||||
if (mController != null) {
|
||||
mController.updateBubbleBarLocation(BubbleBarLocation.LEFT);
|
||||
mController.updateBubbleBarLocation(BubbleBarLocation.LEFT,
|
||||
BubbleBarLocation.UpdateSource.A11Y_ACTION_BUBBLE);
|
||||
}
|
||||
}
|
||||
if (action == R.id.action_move_right) {
|
||||
if (mController != null) {
|
||||
mController.updateBubbleBarLocation(BubbleBarLocation.RIGHT);
|
||||
mController.updateBubbleBarLocation(BubbleBarLocation.RIGHT,
|
||||
BubbleBarLocation.UpdateSource.A11Y_ACTION_BUBBLE);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
@@ -456,6 +458,7 @@ public class BubbleView extends ConstraintLayout {
|
||||
void collapse();
|
||||
|
||||
/** Request bubble bar location to be updated to the given location */
|
||||
void updateBubbleBarLocation(BubbleBarLocation location);
|
||||
void updateBubbleBarLocation(BubbleBarLocation location,
|
||||
@BubbleBarLocation.UpdateSource int source);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user