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

Android: Orientation - Window doesn't get locked to the supported orientation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: Release 3.1.2
    • Component/s: Android
    • Environment:

      SDK: 3.1.2.v20130802180729
      Appcelertaor Studio: 3.1.2.201308021524
      OS: OSX 10.8.4
      Device: google nexus(v 4.0.4), nexus7(4.2.1)

      Description

      Window doesn't get locked to the supported orientation.
      This is regression since the issue does not occur on 3.1.1 GA

      Steps to reproduce:
      1. Create an app using the code below.
      2. Launch the app while device is in portrait mode.

      Actual:
      The app launches in portrait mode.

      Expected: The app should be launched in landscape mode since the app supports only landscape modes. The same issue goes for Portrait only apps also.

      var win = Ti.UI.createWindow({
      	backgroundColor:'white'
      });
       
      var img = Ti.UI.createImageView({image:'grouch.jpg'});
       
      win.add(img);
       
      win.orientationModes = [
          Ti.UI.LANDSCAPE_LEFT,
          Ti.UI.LANDSCAPE_RIGHT
      ];
       
      win.open();
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pwang Ping Wang
                Reporter:
                amittal Anshu Mittal
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-17143
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code