Pass the bubble bar screen coordinates to WMShell
This allows WMShell to store the bubble bar coordinates so that it
draw the expanded view above it.
Fixes: 290099589
Test: Manual
- Add bubbles to the bubble bar
- Expand the bubble bar
- Observe that there is enough space between the bar and the
expanded view
Change-Id: Iff40b2b71369f33f343eb069e119f65723a6984e
This commit is contained in:
@@ -113,8 +113,8 @@ public class BubbleBarViewController {
|
||||
mBubbleStashController.stashBubbleBar();
|
||||
} else {
|
||||
mBubbleBarController.setSelectedBubble(bubble);
|
||||
mSystemUiProxy.showBubble(bubble.getKey(),
|
||||
mBubbleStashController.isBubblesShowingOnHome());
|
||||
int[] bubbleBarCoords = mBarView.getLocationOnScreen();
|
||||
mSystemUiProxy.showBubble(bubble.getKey(), bubbleBarCoords[0], bubbleBarCoords[1]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -293,8 +293,8 @@ public class BubbleBarViewController {
|
||||
} else {
|
||||
final String selectedKey = mBubbleBarController.getSelectedBubbleKey();
|
||||
if (selectedKey != null) {
|
||||
mSystemUiProxy.showBubble(selectedKey,
|
||||
mBubbleStashController.isBubblesShowingOnHome());
|
||||
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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user