Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +8 −3 Original line number Diff line number Diff line Loading @@ -474,11 +474,16 @@ public class BubbleController implements ConfigurationChangeListener, mDisplayController.addDisplayChangingController( (displayId, fromRotation, toRotation, newDisplayAreaInfo, t) -> { // This is triggered right before the rotation is applied if (fromRotation != toRotation) { Rect newScreenBounds = new Rect(); if (newDisplayAreaInfo != null) { newScreenBounds = newDisplayAreaInfo.configuration.windowConfiguration.getBounds(); } // This is triggered right before the rotation or new screen size is applied if (fromRotation != toRotation || !newScreenBounds.equals(mScreenBounds)) { if (mStackView != null) { // Layout listener set on stackView will update the positioner // once the rotation is applied // once the rotation or screen change is applied mStackView.onOrientationChanged(); } } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +8 −3 Original line number Diff line number Diff line Loading @@ -474,11 +474,16 @@ public class BubbleController implements ConfigurationChangeListener, mDisplayController.addDisplayChangingController( (displayId, fromRotation, toRotation, newDisplayAreaInfo, t) -> { // This is triggered right before the rotation is applied if (fromRotation != toRotation) { Rect newScreenBounds = new Rect(); if (newDisplayAreaInfo != null) { newScreenBounds = newDisplayAreaInfo.configuration.windowConfiguration.getBounds(); } // This is triggered right before the rotation or new screen size is applied if (fromRotation != toRotation || !newScreenBounds.equals(mScreenBounds)) { if (mStackView != null) { // Layout listener set on stackView will update the positioner // once the rotation is applied // once the rotation or screen change is applied mStackView.onOrientationChanged(); } } Loading