Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27141

Android 9: App not honoring the Orientation set for Windows.

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 8.0.1
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Android 9, Ti SDK 8.0.1.GA

      Description

      Hi Team,

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                sdarda Sharif AbuDarda
              • Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code