We are observing some abnormal behavior with “orientationModes” property of Ti.UI.Window. When we set orientationModes : [Titanium.UI.PORTRAIT] during window construction, the app is rotating to landscape, when “Auto-Rotate” is turned on in real time device. This is only happening with Android 9.0 and behaving properly on OS versions less than 9.0. The issue is reproducible using SDK 8.0.1.GA and lower release.
Please find the attached sample to reproduce the issue.
Steps to reproduce :
1. Turn on “Auto-Rotate” in Android device with OS 9
2. Run the app on the device.
3. Now hold device in landscape mode and navigate to next screen by tapping on the label.
4. A new screen will initially load in landscape mode then turns to Portrait mode.
Expected result :
New screen opens is Portrait mode.
Then Run on Android device with OS < 9(Works as expected).
Thanks in advance.