{ "id": "136689", "key": "TIMOB-17712", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16586", "description": "Release 3.4.2", "name": "Release 3.4.2", "archived": false, "released": true, "releaseDate": "2017-03-11" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-10-13T18:19:02.000+0000", "created": "2014-09-16T23:07:38.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "iOS8", "module_media" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [ { "id": "41238", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "136063", "key": "TIMOB-17609", "fields": { "summary": "iOS8: Image Capture Rotated has black bars upon rotation on iPad device", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "41221", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "136632", "key": "TIMOB-17698", "fields": { "summary": "iOS8: iPad Image Capture Black Bars if rotated immediately when clicking launch Image capture", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "41216", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "136317", "key": "TIMOB-17662", "fields": { "summary": "iOS8: Feature Request to do not allow the CameraPreview to rotate", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "41434", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "136957", "key": "TIMOB-17735", "fields": { "summary": "iOS8: Launching Image Capture when device is flat on the desk and in Landscape mode results in the UI being rotated and black bars present", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-11-21T19:53:39.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "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. \r\n\r\nI have uploaded an app called 9-16-OppositeOrientationTest.zip and screenshots which illustrate this issue. \r\n\r\nCASE 1 (landscape window in portrait mode) \r\n# Launch the app in Landscape mode with the Home button on the right \r\n# Rotate the app around, notice the UI changes to reflect the orientation correctly. \r\n# Get it back into landscape mode (Home button on right). \r\n# Click Launch Camera \r\n# Click the (X) button and then immediately rotate the tablet to portrait up or portrait down. \r\n## Notice that the image capture view will close and the app then rotates into landscape orientation. It should rotate to portrait orientation. \r\nSee screenshot Home On Bottom.png \r\n\r\nCASE 2 (portrait window in landscape) \r\n# Kill the app \r\n# Launch the app in Landscape mode with the Home button on the right \r\n# Rotate the app around, notice the UI changes to reflect the orientation correctly. \r\n# Rotate the app to portrait mode (Home button on bottom). \r\n# Click Launch Camera \r\n# Click the (X) button and then immediately rotate the tablet to landscape left up or landscape right. \r\n## Notice that the image capture view will close and the app then rotates into portrait orientation. It should rotate to landscape orientation. \r\nSee screenshot Home On Right.png \r\n\r\nh5. Issue reproducible with the following code\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\nvar button = Ti.UI.createButton({\r\n title: 'Open',\r\n top: 50,\r\n left: 10,\r\n right: 10,\r\n height: 50\r\n});\r\nwin.add(button);\r\nwin.open();\r\n \r\nbutton.addEventListener('click', function() {\r\n Ti.API.info('click');\r\n Ti.Media.showCamera({\r\n success: success,\r\n error: error,\r\n saveToPhotoGallery: false,\r\n allowEditing: false,\r\n mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],\r\n showControls: true,\r\n autohide: false\r\n });\r\n \r\n function success(e) {\r\n Ti.API.info('Success');\r\n }\r\n function error(e) {\r\n Ti.API.info('Success');\r\n }\r\n});\r\n{code}", "attachment": [ { "id": "51315", "filename": "9-16-OppositeOrientationTest.zip", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2014-09-16T23:07:38.000+0000", "size": 7593486, "mimeType": "application/zip" } ], "flagged": false, "summary": "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", "creator": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "subtasks": [], "reporter": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "environment": " iOS 8 GM\r\niOS 8 GM SDK\r\n 3.4.0.v20140916131632 TiSDK", "closedSprints": [ { "id": 220, "state": "closed", "name": "2014 Sprint 20 SDK", "startDate": "2014-09-29T22:32:25.224Z", "endDate": "2014-10-13T18:25:00.000Z", "completeDate": "2014-10-13T18:25:45.560Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "324533", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving on hold, similar to TIMOB-17698 and TIMOB-17609.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-18T17:46:02.000+0000", "updated": "2014-09-18T17:46:02.000+0000" }, { "id": "324591", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Use this as a JS workaround for now\r\n{code}\r\nfunction isIOS8()\r\n{\r\n //replace with correct function\r\n return true;\r\n}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\nvar button = Ti.UI.createButton({\r\n title: 'Open With Dummy',\r\n top: 50,\r\n left: 10,\r\n right: 10,\r\n height: 50\r\n});\r\nwin.add(button);\r\nwin.open();\r\n\r\n\r\nfunction showCamera()\r\n{\r\n Ti.Media.showCamera({\r\n success: success,\r\n error: error,\r\n saveToPhotoGallery: false,\r\n allowEditing: false,\r\n mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],\r\n showControls: true,\r\n autohide: false\r\n });\r\n \r\n function success(e) {\r\n Ti.API.info('Success');\r\n }\r\n function error(e) {\r\n Ti.API.info('Success');\r\n }\r\n}\r\n\r\nvar cameraShown = false;\r\n\r\nfunction showDummy(bgImage)\r\n{\r\n cameraShown = false;\r\n\r\n var dwin = Ti.UI.createWindow({backgroundImage:bgImage});\r\n dwin.orientationModes = [win.orientation];\r\n dwin.addEventListener('focus',function(){\r\n if(cameraShown === false) {\r\n cameraShown = true;\r\n Ti.API.info('SHOWING CAMERA')\r\n showCamera();\r\n } else {\r\n Ti.API.info('CLOSING')\r\n dwin.close({animated:false});\r\n }\r\n });\r\n\r\n dwin.open({modal:true,animated:false})\r\n\r\n}\r\n \r\nbutton.addEventListener('click', function() {\r\n Ti.API.info('click');\r\n if (isIOS8() == true) {\r\n Ti.API.info('TAKING SCREEN SHOT')\r\n Ti.Media.takeScreenshot(function(e){\r\n Ti.API.info('SHOWING DUMMY')\r\n showDummy(e.media);\r\n })\r\n } else {\r\n showCamera();\r\n }\r\n\r\n});\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-09-18T21:34:15.000+0000", "updated": "2014-09-18T21:34:15.000+0000" }, { "id": "327146", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to find a code fix", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-07T16:18:36.000+0000", "updated": "2014-10-07T16:18:36.000+0000" }, { "id": "327147", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending \r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/6204\r\n3_4_X - https://github.com/appcelerator/titanium_mobile/pull/6205", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-07T16:20:25.000+0000", "updated": "2014-10-07T16:31:30.000+0000" }, { "id": "327189", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested the provided code using\r\nMac osx 10.9.5 Mavericks\r\nAppcelerator Studio, build: 3.4.0.201409261245\r\nTitanium SDK, build: 3.4.1.v20141007092513\r\nacs@1.0.18\r\nalloy 1.5.1\r\ninstall@0.1.7\r\nnpm@1.4.23\r\nsudo@1.0.3\r\ntitanium 3.4.0\r\ntitanium-code-processor@1.1.1\r\nXcode6.1GM\r\nDevices:\r\niPad mini iOS 8.1b\r\niPhone 6 iOS 8.1b\r\nVerified as fixed", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-07T20:50:19.000+0000", "updated": "2014-10-07T20:50:19.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }