diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/charging/WiredChargingRippleController.kt b/packages/SystemUI/src/com/android/systemui/statusbar/charging/WiredChargingRippleController.kt index 48717e29d06a3..5df593b64c24d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/charging/WiredChargingRippleController.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/charging/WiredChargingRippleController.kt @@ -175,7 +175,7 @@ class WiredChargingRippleController @Inject constructor( val width = displayMetrics.widthPixels val height = displayMetrics.heightPixels rippleView.radius = Integer.max(width, height).toFloat() - rippleView.origin = when (RotationUtils.getRotation(context)) { + rippleView.origin = when (RotationUtils.getExactRotation(context)) { RotationUtils.ROTATION_LANDSCAPE -> { PointF(width * normalizedPortPosY, height * (1 - normalizedPortPosX)) }