Loading packages/SystemUI/src/com/android/systemui/ScreenDecorHwcLayer.kt +1 −1 Original line number Diff line number Diff line Loading @@ -380,7 +380,7 @@ class ScreenDecorHwcLayer(context: Context, displayDecorationSupport: DisplayDec ) { if (hasTopRoundedCorner == hasTop && hasBottomRoundedCorner == hasBottom && roundedCornerBottomSize == bottomSize && roundedCornerTopSize == topSize && roundedCornerBottomSize == bottomSize) { return } Loading packages/SystemUI/src/com/android/systemui/ScreenDecorations.java +9 −6 Original line number Diff line number Diff line Loading @@ -348,7 +348,8 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab @Override public void onDisplayChanged(int displayId) { final int newRotation = mContext.getDisplay().getRotation(); if (mOverlays != null && mRotation != newRotation) { if ((mOverlays != null || mScreenDecorHwcWindow != null) && mRotation != newRotation) { // We cannot immediately update the orientation. Otherwise // WindowManager is still deferring layout until it has finished dispatching // the config changes, which may cause divergence between what we draw Loading @@ -362,6 +363,7 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab + mRotation); } if (mOverlays != null) { for (int i = 0; i < BOUNDS_POSITION_LENGTH; i++) { if (mOverlays[i] != null) { final ViewGroup overlayView = mOverlays[i].getRootView(); Loading @@ -369,6 +371,7 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab new RestartingPreDrawListener(overlayView, i, newRotation)); } } } if (mScreenDecorHwcWindow != null) { mScreenDecorHwcWindow.getViewTreeObserver().addOnPreDrawListener( Loading packages/SystemUI/src/com/android/systemui/decor/RoundedCornerDecorProviderImpl.kt +1 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ private fun Int.toLayoutGravity(@Surface.Rotation rotation: Int): Int = when (ro DisplayCutout.BOUNDS_POSITION_LEFT -> Gravity.BOTTOM DisplayCutout.BOUNDS_POSITION_TOP -> Gravity.LEFT DisplayCutout.BOUNDS_POSITION_RIGHT -> Gravity.TOP else /* DisplayCutout.BOUNDS_POSITION_BOTTOM */ -> Gravity.LEFT else /* DisplayCutout.BOUNDS_POSITION_BOTTOM */ -> Gravity.RIGHT } Surface.ROTATION_270 -> when (this) { DisplayCutout.BOUNDS_POSITION_LEFT -> Gravity.TOP Loading Loading
packages/SystemUI/src/com/android/systemui/ScreenDecorHwcLayer.kt +1 −1 Original line number Diff line number Diff line Loading @@ -380,7 +380,7 @@ class ScreenDecorHwcLayer(context: Context, displayDecorationSupport: DisplayDec ) { if (hasTopRoundedCorner == hasTop && hasBottomRoundedCorner == hasBottom && roundedCornerBottomSize == bottomSize && roundedCornerTopSize == topSize && roundedCornerBottomSize == bottomSize) { return } Loading
packages/SystemUI/src/com/android/systemui/ScreenDecorations.java +9 −6 Original line number Diff line number Diff line Loading @@ -348,7 +348,8 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab @Override public void onDisplayChanged(int displayId) { final int newRotation = mContext.getDisplay().getRotation(); if (mOverlays != null && mRotation != newRotation) { if ((mOverlays != null || mScreenDecorHwcWindow != null) && mRotation != newRotation) { // We cannot immediately update the orientation. Otherwise // WindowManager is still deferring layout until it has finished dispatching // the config changes, which may cause divergence between what we draw Loading @@ -362,6 +363,7 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab + mRotation); } if (mOverlays != null) { for (int i = 0; i < BOUNDS_POSITION_LENGTH; i++) { if (mOverlays[i] != null) { final ViewGroup overlayView = mOverlays[i].getRootView(); Loading @@ -369,6 +371,7 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab new RestartingPreDrawListener(overlayView, i, newRotation)); } } } if (mScreenDecorHwcWindow != null) { mScreenDecorHwcWindow.getViewTreeObserver().addOnPreDrawListener( Loading
packages/SystemUI/src/com/android/systemui/decor/RoundedCornerDecorProviderImpl.kt +1 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ private fun Int.toLayoutGravity(@Surface.Rotation rotation: Int): Int = when (ro DisplayCutout.BOUNDS_POSITION_LEFT -> Gravity.BOTTOM DisplayCutout.BOUNDS_POSITION_TOP -> Gravity.LEFT DisplayCutout.BOUNDS_POSITION_RIGHT -> Gravity.TOP else /* DisplayCutout.BOUNDS_POSITION_BOTTOM */ -> Gravity.LEFT else /* DisplayCutout.BOUNDS_POSITION_BOTTOM */ -> Gravity.RIGHT } Surface.ROTATION_270 -> when (this) { DisplayCutout.BOUNDS_POSITION_LEFT -> Gravity.TOP Loading