{ "id": "151355", "key": "TIMOB-19558", "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": null, "resolutiondate": null, "created": "2015-09-21T16:34:17.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "andoid", "android-4.0", "orientation", "orientationChange", "titanbeta" ], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" }, { "id": "16919", "description": "Critical updates", "name": "Release 4.1.1", "archived": true, "released": true, "releaseDate": "2015-07-15" }, { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "issuelinks": [], "assignee": { "name": "fmerzadyan", "key": "fmerzadyan2", "displayName": "Frankie Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-27T16:07:29.000+0000", "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" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "The Ti.Gesture orientationchange event reports incorrect orientation. Run the following code, holding the device in portrail orientation, and it will report Landscape Left. Rotate the device, and the reported orientation will always be 90 degrees off.\r\n\r\n{code:java}\r\nTi.UI.setBackgroundColor('#000');\r\n\r\n// Ti.UI.PORTRAIT=1\r\n// Ti.UI.LANDSCAPE_LEFT=2\r\n// Ti.UI.UPSIDE_PORTRAIT=3\r\n// Ti.UI.LANDSCAPE_RIGHT=4\r\n\r\nvar OrientationNames=[ 'Unknown', 'Portrait', 'Landscape Left', 'Upside Down Portrait', 'Landscape Right' ];\r\n\r\nvar win1=Ti.UI.createWindow({\r\n exitOnClose:true,\r\n navBarHidden:false,\r\n backgroundColor:'#fff',\r\n layout:'vertical'\r\n });\r\n\r\nvar OrigOri=Ti.Gesture.orientation;\r\nvar label1=Ti.UI.createLabel({\r\n color:'#999',\r\n text:'Original Orientation: '+OrientationNames[OrigOri]+' ('+OrigOri+')',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n top:'25%',\r\n width:'auto'\r\n });\r\nvar label2=Ti.UI.createLabel({\r\n color:'#999',\r\n text:'Current Orientation: '+OrientationNames[OrigOri]+' ('+OrigOri+')',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n top:'25%',\r\n width:'auto'\r\n });\r\n\r\nwin1.add(label1);\r\nwin1.add(label2);\r\nwin1.open();\r\n\r\nTi.Gesture.addEventListener('orientationchange',TestOrientationChange);\r\nfunction TestOrientationChange(evt)\r\n{\r\n var CurrOri=evt.orientation;\r\n label2.text='Current Orientation: '+OrientationNames[CurrOri]+' ('+CurrOri+')';\r\n}\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Ti.Gesture: orientationchange event reports incorrect orientation", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "Ti SDK 4.1.0, 4.1.1, 5.0.0\r\nAndroid 4.0.3\r\n", "comment": { "comments": [ { "id": "364544", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Is this a regression?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-22T02:03:01.000+0000", "updated": "2015-09-22T02:03:01.000+0000" }, { "id": "364588", "author": { "name": "sschueller", "key": "sschueller", "displayName": "Stefan Schüller", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "sschueller", "key": "sschueller", "displayName": "Stefan Schüller", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-09-22T07:36:25.000+0000", "updated": "2015-09-22T07:36:25.000+0000" }, { "id": "364613", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Yes, it is a regression. Works fine in Ti SDK 3.5.1.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2015-09-22T12:16:22.000+0000", "updated": "2015-09-22T12:16:22.000+0000" }, { "id": "415874", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Happy to see that this has finally been assigned to someone.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2017-03-27T16:07:29.000+0000", "updated": "2017-03-27T16:07:29.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }