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

iOS8: if the user rotates the device when exiting image capture the orientation of the device is in the opposite orientation it should be in

    Details

    • Story Points:
      5
    • Sprint:
      2014 Sprint 20 SDK

      Description

      I have already consumed the change from TIMOB-17662 by setting autorotate to false in CameraDevice.js and this issue is still present. I initially mentioned this issue in Case 2640 which has been closed so that we can focus on this specific case.

      I have uploaded an app called 9-16-OppositeOrientationTest.zip and screenshots which illustrate this issue.

      CASE 1 (landscape window in portrait mode)

      1. Launch the app in Landscape mode with the Home button on the right
      2. Rotate the app around, notice the UI changes to reflect the orientation correctly.
      3. Get it back into landscape mode (Home button on right).
      4. Click Launch Camera
      5. Click the (X) button and then immediately rotate the tablet to portrait up or portrait down.
        1. Notice that the image capture view will close and the app then rotates into landscape orientation. It should rotate to portrait orientation.
          See screenshot Home On Bottom.png

      CASE 2 (portrait window in landscape)

      1. Kill the app
      2. Launch the app in Landscape mode with the Home button on the right
      3. Rotate the app around, notice the UI changes to reflect the orientation correctly.
      4. Rotate the app to portrait mode (Home button on bottom).
      5. Click Launch Camera
      6. Click the (X) button and then immediately rotate the tablet to landscape left up or landscape right.
        1. Notice that the image capture view will close and the app then rotates into portrait orientation. It should rotate to landscape orientation.
          See screenshot Home On Right.png
      Issue reproducible with the following code

      var win = Ti.UI.createWindow({
          backgroundColor: 'white'
      });
      var button = Ti.UI.createButton({
          title: 'Open',
          top: 50,
          left: 10,
          right: 10,
          height: 50
      });
      win.add(button);
      win.open();
       
      button.addEventListener('click', function() {
          Ti.API.info('click');
          Ti.Media.showCamera({
              success: success,
              error: error,
              saveToPhotoGallery: false,
              allowEditing: false,
              mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],
              showControls: true,
              autohide: false
          });
       
          function success(e) {
              Ti.API.info('Success');
          }
          function error(e) {
              Ti.API.info('Success');
          }
      });
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                rtlechuga Radamantis Torres-Lechuga (Inactive)
                Reviewer:
                Jon Alter
                Tester:
                Olga Romero
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code