{ "id": "136501", "key": "TIMOB-17748", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-05-02T20:24:42.000+0000", "created": "2014-09-12T17:02:48.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "TCSupport" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-02T20:24:42.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": "h4. Problem Description\r\nCamera overlay on iPad rotates in an app that is locked in portrait mode. \r\nExpected: Camera overlay should stay in portrait mode\r\n\r\n\r\nh4. Steps to reproduce\r\n1. Create a new mobile project (classic titanium)\r\n2. Paste this to app.js\r\n{code:title=app.js}\r\nvar win = Titanium.UI.createWindow({\r\n\tbackgroundColor : '#fff',\r\n\tlayout : 'vertical'\r\n});\r\n\r\nvar frmcamera = Ti.UI.createButton({\r\n\tbackgroundColor : '#ff0000',\r\n\ttitle : 'Open Camera',\r\n\tcolor : '#fff',\r\n\twidth : Ti.UI.SIZE,\r\n\theight : Ti.UI.SIZE,\r\n\ttop : 30\r\n\r\n});\r\n\r\nfrmcamera.addEventListener('click', function() {\r\n\tfireUpTheCamera();\r\n});\r\n\r\nwin.add(frmcamera);\r\n\r\n\r\nvar overlay = Ti.UI.createView({\r\n\twidth : 50,\r\n\theight : 50,\r\n});\r\n// Create an ImageView.\r\nvar overlayImg = Ti.UI.createImageView({\r\n\timage : '/KS_nav_ui.png',\r\n\twidth : Ti.UI.SIZE,\r\n\theight : Ti.UI.SIZE,\r\n\tautorotate : true,\r\n});\r\n\r\noverlayImg.addEventListener('click', function() {\r\n\tTi.Media.takePicture();\r\n});\r\noverlay.add(overlayImg); \r\n\r\n\r\nfunction fireUpTheCamera() {\r\n\tTitanium.Media.showCamera({\r\n\r\n\t\tsuccess : function(event) {\r\n\r\n\t\t},\r\n\t\tcancel : function() {\r\n\t\t},\r\n\t\terror : function(error) {\r\n\r\n\t\t},\r\n\t\tsaveToPhotoGallery : true,\r\n\t\tallowEditing : false,\r\n\t\toverlay : overlay,\r\n\t\tmediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO]\r\n\t});\r\n}\r\n\r\nwin.open();\r\n\r\n{code}\r\n3. Set tiapp.xml\r\n{code:title=tiapp.xml}\r\n \r\n \r\n Ti.UI.PORTRAIT\r\n \r\n \r\n Ti.UI.PORTRAIT\r\n \r\n\r\n{code}\r\n4. Test in a device", "attachment": [], "flagged": false, "summary": "iOS8: Camera overlay rotates on app locked in portrait orientation mode", "creator": { "name": "mukundsamant89@gmail.com", "key": "mukundsamant89@gmail.com", "displayName": "Mukund Samant", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mukundsamant89@gmail.com", "key": "mukundsamant89@gmail.com", "displayName": "Mukund Samant", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version:3.3.0 and 3.2.2\r\nPlatform: IOS 7.1.2\r\nDevice:iPad only\r\nHost:OS X 10.9.2\r\nTitanium Studio:3.3.0\r\n\r\nTitanium SDK: 3.3.0.GA\r\nTitanium CLI: 3.4.0,\r\niPad SDK:7.1.2\r\nOS X Version: 10.9.4,\r\nTitanium Studio: 3.4.0\r\n", "comment": { "comments": [ { "id": "323389", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "Probably related to (or fixed by) TIMOB-17662", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-12T18:45:09.000+0000", "updated": "2014-09-12T18:45:09.000+0000" }, { "id": "418722", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as Invalid as there is now a new version of Kitchen Sink available and we no longer support the version which relates to this ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-02T20:24:42.000+0000", "updated": "2017-05-02T20:24:42.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }