Window rotation: fix up sensor logic
The previous logic was incorrect because it would always use the lastRotation when the activity requested SCREEN_ORENTATION_FULL_SENSOR or SCREEN_ORENTATION_FULL_USER, but it should have used the sensorRotation in that case. Adjust the logic to be closer to the AOSP implementation to use the sensorRotation when the activity has set so, or the user has specifically expressed they want their device to rotate to that orientation Ref: CYNGNOS-1163 Change-Id: Ic0e38fdc97b03cda3fa0f85c0f2d327f66a23f6a Signed-off-by: Roman Birg <roman@cyngn.com> (cherry picked from commit fb50db64)
Loading
Please register or sign in to comment