Skip to content
Commit b9f622bc authored by Yein Jo's avatar Yein Jo
Browse files

Replace RotationUtils#Rotation with Surface#Rotation for wired charging animation.

When layout the ripple animation, we only care about the device
rotation, and not whether it's in portrait or landscape. (Consider a
case where the device has a larger width by default.)
Thus we should use Surface#Rotation that always give us the angle
based on the counter clock-wise (i.e. natural) rotation.

Note that R.bool.config_reverseDefaultRotation does not affect the
rotation order. Also tested on both devices with different config value.

Bug: 264992323
Test: Manual, WiredChargingRippleControllerTest
Change-Id: I25daae0ed4969ebb6e9387ea936b85b2c33bcdcf
parent c9425a38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment