{ "id": "102404", "key": "TIMOB-11213", "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": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14157", "description": "Sprint 2012-20 API", "name": "Sprint 2012-20 API", "archived": true, "released": true, "releaseDate": "2012-10-08" }, { "id": "14272", "description": "2012 Sprint 20", "name": "2012 Sprint 20", "archived": true, "released": true, "releaseDate": "2012-10-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-06T02:44:15.000+0000", "created": "2012-09-28T22:30:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-ios090112", "qe-ios6", "qe-nfc", "qe-port" ], "versions": [], "issuelinks": [ { "id": "21704", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "101955", "key": "TIMOB-11114", "fields": { "summary": "iOS: On iOS6 VideoPlayer changes orientation when Done or Full Screen button is clicked", "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 } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-10-06T02:44:15.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": "While investigating an issue posted on the Q&A, I was unable to reproduce the exact problem, but did discover another:\r\n\r\nWhen you allow only portrait in Tiapp.xml:\r\n{code}\r\n\r\n\r\n{code}\r\n\r\nAnd then open a window with landscape left allowed and attempt to send a mail, the email dialog can rotate as you wish. If you close the email dialog and return to your window in portrait, the win will be in portrait - which shouldn't be allowed.\r\n\r\nSample code:\r\n{code}\r\nvar win= Ti.UI.createWindow({\r\n\torientationModes:[Ti.UI.LANDSCAPE_LEFT],\r\n\tbackgroundColor:'red'\r\n\t});\r\n\t\r\nvar button = Ti.UI.createButton({title:\"Click me\", height:60, width:200});\r\n\r\nbutton.addEventListener('click', function(){\r\n\tTitanium.Media.takeScreenshot(function(event)\r\n\t{\r\n\t\t// set blob on image view\r\n\t\tvar myImage = event.media;\r\n\t\r\n\t\r\n\t\tvar emailDialog = Titanium.UI.createEmailDialog();\r\n\t\t\t\tif (!emailDialog.isSupported()) {\r\n\t\t\t\t\tTi.UI.createAlertDialog({\r\n\t\t\t\t\t\ttitle:'Error',\r\n\t\t\t\t\t\tmessage:'Email not available'\r\n\t\t\t\t\t}).show();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\temailDialog.setSubject('Hello from Titanium!');\r\n\t\t\t\temailDialog.setToRecipients(['foo@yahoo.com']);\r\n\t\t\t\temailDialog.setMessageBody('Appcelerator Titanium Rocks!å');\r\n\t\t\t\temailDialog.setHtml(true);\r\n\t\t\t\temailDialog.setBarColor('#336699');\r\n\t\t\t\t\t\r\n\t\t\t\t// attach a blob\r\n\t\t\t\temailDialog.addAttachment(event.media);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\temailDialog.addEventListener('complete',function(e)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (e.result == emailDialog.SENT)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (Ti.Platform.osname != 'android') {\r\n\t\t\t\t\t\t\t// android doesn't give us useful result codes.\r\n\t\t\t\t\t\t\t// it anyway shows a toast.\r\n\t\t\t\t\t\t\talert(\"message was sent\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\talert(\"message was not sent. result = \" + e.result);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\temailDialog.open();\r\n\t\t\t\t\r\n\t\t\t});\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n\r\nSteps to reproduce:\r\n1) Create a new application\r\n2) Set tiapp.xml to portrait orientation as above\r\n3) Use sample code\r\n4) Launch sample app in portrait orientation, not splash is portrait as desired\r\n5) Note window is locked landscape left - Click the \"Click me\" button\r\n5) note email dialog comes up in portrait\r\n6) Cancel email\r\n\r\nResult:\r\nThe red window is now displayed in portrait - any orientation change returns it to its only approved orientation\r\n\r\nExpected:\r\nThe red window does not change orientation\r\n\r\nNote: this does not occur on iOS 5 devices", "attachment": [ { "id": "32186", "filename": "dismissed_alert.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-01T23:05:56.000+0000", "size": 26398, "mimeType": "image/png" }, { "id": "32143", "filename": "expected.png", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-28T22:30:48.000+0000", "size": 24340, "mimeType": "image/png" }, { "id": "32187", "filename": "force_rotation_landscape_locked.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-01T23:05:56.000+0000", "size": 23973, "mimeType": "image/png" }, { "id": "32185", "filename": "force_rotation_portrait.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-01T23:05:56.000+0000", "size": 134515, "mimeType": "image/png" }, { "id": "32184", "filename": "left_landscape_email_cancel.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-01T23:05:56.000+0000", "size": 130933, "mimeType": "image/png" }, { "id": "32144", "filename": "unexpected.png", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-28T22:30:48.000+0000", "size": 25396, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: orientation - iOS 6 only: Forcing landscape on a window then opening an email dialog in portrait will result in your original window allowed to rotate to portrait", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS X 10.8.2\r\nXcode 4.5/iOS 6.0\r\niPhone 4S iOS 6.0\r\niPhone 5 iOS 6.0", "comment": { "comments": [ { "id": "221683", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Adding screenshots for a different behavior dated 01/Oct.\nSteps to reproduce:\n1) Create a new application\n2) Set tiapp.xml to portrait orientation as above\n3) Use sample code\n4) Launch sample app in portrait orientation\n5) Note window is locked landscape left - Click the \"Click me\" button\n5) note email dialog comes up in portrait\n6) Cancel email\n7) The red window with an Alert \"message was not sent, result=0\" is displayed in landscape left\n8) Rotate device or put it down and pick it up\n9) The red window with an Alert \"message was not sent, result=0\" is displayed in portrait\n10)Click OK\n11) Rotate device anyhow\n\nResult:\nThe red window is now displayed in locked landscape left orientation\nExpected:\nThe red window does not change orientation\n*Note: this does not occur on iOS 5 devices*\nTested on:\nTitanium Studio, build: 2.1.2.201208301612\nTitanium SDK: 3.0.0.v20120929141713\nTitanium SDK: 2.1.3.v20120928203111\nDevices:\niPhone5 ios 6.0\n\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-01T23:07:32.000+0000", "updated": "2012-10-01T23:07:32.000+0000" }, { "id": "221772", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed.\nConfirmed with:\nTitanium Studio, build: 2.1.2.201208301612\nTitanium SDK: 3.0.0.v20121002114914\nTitanium SDK: 2.1.3.v20121002110115\nXcode 4.5\nTitanium Studio, build: 2.1.2.201208301612\nTitanium SDK: 2.1.2GA\nXcode 4.4.1\niPhone5 ios 6.0", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-02T20:06:29.000+0000", "updated": "2012-10-02T20:06:29.000+0000" }, { "id": "222379", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopened to adjust remaining estimate.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-06T02:44:15.000+0000", "updated": "2012-10-06T02:44:15.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }