lime icon indicating copy to clipboard operation
lime copied to clipboard

Android rotation lock setting is not respected

Open Oxdeception opened this issue 1 year ago • 1 comments

Steps to Reproduce

  1. Create Lime project using SimpleImage template
  2. Set Auto-rotate screen to off on Android device
  3. lime test android
  4. Rotate device

Expected Behavior Starting orientation is maintained

Actual Behavior Orientation changes

Oxdeception avatar Dec 29 '23 20:12 Oxdeception

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

player-03 avatar Jan 05 '24 04:01 player-03