+70
−2
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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