summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Beverly <beverlyt@google.com> 2022-02-23 14:03:28 +0000
committer Beverly Tai <beverlyt@google.com> 2022-02-23 14:06:32 +0000
commit7cacbce58da663e779db36b9a92468e7c70f1234 (patch)
treecc5d77db8e5bf211c7852ad1f6fb76da24622a81
parent54dbcaebd20d4eee510d9cb2f060e7819de2749c (diff)
Use getExactRotation for UPSIDE_DOWN rotation
Test: manually test charging animation in all orientations Bug: 220370196 Change-Id: I772a772ef4fd6154e8c20adbb4b1e699320e79c9
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/charging/WiredChargingRippleController.kt2
1 files changed, 1 insertions, 1 deletions
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 48717e29d06a..5df593b64c24 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))
}