lime
lime copied to clipboard
Android rotation lock setting is not respected
Steps to Reproduce
- Create Lime project using SimpleImage template
- Set Auto-rotate screen to off on Android device
-
lime test android
- Rotate device
Expected Behavior Starting orientation is maintained
Actual Behavior Orientation changes
The documentation for ACCELEROMETER_ROTATION
makes it sound like apps get to override the system setting, so maybe Lime is doing that somewhere.
Or maybe Lime uses Display.getRotation()
without regard to the accelerometer setting. Though since that value comes from Android, it ought to work correctly. https://github.com/openfl/lime/blob/e6205bf3aaace23c7e2458841da4435ff9879eaf/templates/android/template/app/src/main/java/org/libsdl/app/SDLActivity.java#L2053-L2095