{ "id": "61926", "key": "TIMOB-1294", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-14T15:16:12.000+0000", "created": "2011-04-15T02:48:44.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "module_orientation", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "19917", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-15T09:01:40.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}{html}", "attachment": [], "flagged": false, "summary": "Android: query of orientation property should show current orientation.", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "214454", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Not sure if I understand the issue here correctly, but here is some sample code that I came up with:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white', \r\n orientationModes: [Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT]\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n text: 'Null'\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n title: 'Query orientation',\r\n top: 20,\r\n width: 150,\r\n height: 70\r\n});\r\n\r\nbutton.addEventListener('click', function(e)\r\n{\r\n label.text = Ti.Gesture.orientation;\r\n});\r\n\r\nwin.add(button);\r\nwin.add(label);\r\nwin.open(); \r\n{code}\r\n\r\nTested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120814103312, seems to work as documented.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-14T15:16:00.000+0000", "updated": "2012-08-14T15:16:00.000+0000" }, { "id": "215003", "author": { "name": "etcarev", "key": "etcarev", "displayName": "Evgenii Tcarev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with:\r\nTitanium Studio, build: 2.1.1.201207271312\r\nSDK version: 2.2.0.v20120817115712\r\nSDK version: 2.1.2.v20120816171609\r\n\r\nDevices:\r\nSamsung Galaxy Nexus (4.0.4)\r\nMotorola DROID3 (2.3.4)", "updateAuthor": { "name": "etcarev", "key": "etcarev", "displayName": "Evgenii Tcarev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-17T14:20:07.000+0000", "updated": "2012-08-17T14:20:07.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }