Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit eb539ec0 authored by Roman Birg's avatar Roman Birg Committed by Steve Kondik
Browse files

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: default avatarRoman Birg <roman@cyngn.com>
parent 5fbea51a
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