Merge "Fix an issue with bubbles overlapping the taskbar" into sc-v2-dev am: 99ce862e47
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15747691 Change-Id: I497b80f9757b26c6b3361a95b1111675545bc5b5
This commit is contained in:
@@ -628,8 +628,11 @@ public class BubbleController {
|
|||||||
mAddedToWindowManager = true;
|
mAddedToWindowManager = true;
|
||||||
mBubbleData.getOverflow().initialize(this);
|
mBubbleData.getOverflow().initialize(this);
|
||||||
mWindowManager.addView(mStackView, mWmLayoutParams);
|
mWindowManager.addView(mStackView, mWmLayoutParams);
|
||||||
// Position info is dependent on us being attached to a window
|
mStackView.setOnApplyWindowInsetsListener((view, windowInsets) -> {
|
||||||
mBubblePositioner.update();
|
mBubblePositioner.update();
|
||||||
|
mStackView.onDisplaySizeChanged();
|
||||||
|
return windowInsets;
|
||||||
|
});
|
||||||
} catch (IllegalStateException e) {
|
} catch (IllegalStateException e) {
|
||||||
// This means the stack has already been added. This shouldn't happen...
|
// This means the stack has already been added. This shouldn't happen...
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
@@ -1315,6 +1315,7 @@ public class BubbleStackView extends FrameLayout
|
|||||||
@Override
|
@Override
|
||||||
protected void onAttachedToWindow() {
|
protected void onAttachedToWindow() {
|
||||||
super.onAttachedToWindow();
|
super.onAttachedToWindow();
|
||||||
|
mPositioner.update();
|
||||||
getViewTreeObserver().addOnComputeInternalInsetsListener(this);
|
getViewTreeObserver().addOnComputeInternalInsetsListener(this);
|
||||||
getViewTreeObserver().addOnDrawListener(mSystemGestureExcludeUpdater);
|
getViewTreeObserver().addOnDrawListener(mSystemGestureExcludeUpdater);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user