{ "id": "117983", "key": "TIMOB-14759", "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": "15576", "description": "2013 Sprint 16", "name": "2013 Sprint 16", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15578", "description": "2013 Sprint 16 API", "name": "2013 Sprint 16 API", "archived": true, "released": true, "releaseDate": "2013-08-12" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-08-05T19:11:52.000+0000", "created": "2013-08-05T10:20:44.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.1.2", "regression" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [ { "id": "30696", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "118071", "key": "TIMOB-14775", "fields": { "summary": "Android: Window orientation mode is neglected on application launch", "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": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-03T22:06:10.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": "Window doesn't get locked to the supported orientation.\r\nThis is regression since the issue does not occur on 3.1.1 GA\r\n\r\nSteps to reproduce:\r\n1. Create an app using the code below.\r\n2. Launch the app while device is in portrait mode.\r\n\r\nActual:\r\nThe app launches in portrait mode.\r\n\r\nExpected: The app should be launched in landscape mode since the app supports only landscape modes. The same issue goes for Portrait only apps also.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar img = Ti.UI.createImageView({image:'grouch.jpg'});\r\n\r\nwin.add(img);\r\n\r\nwin.orientationModes = [\r\n Ti.UI.LANDSCAPE_LEFT,\r\n Ti.UI.LANDSCAPE_RIGHT\r\n];\r\n\r\nwin.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Orientation - Window doesn't get locked to the supported orientation ", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.1.2.v20130802180729\r\nAppcelertaor Studio: 3.1.2.201308021524\r\nOS: OSX 10.8.4\r\nDevice: google nexus(v 4.0.4), nexus7(4.2.1)", "comment": { "comments": [ { "id": "264951", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "From our [doc|http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.Window-property-orientationModes], {quote}On Android, orientationModes only takes effect when specified on a heavyweight window.{quote}\nIn the above test case, it sets orientationModes to a lightweight window. It should not have any effect. So the current 3.1.2 behavior is correct.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-05T18:11:45.000+0000", "updated": "2013-08-05T18:11:45.000+0000" }, { "id": "264961", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolve the ticket as Invalid.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-05T19:11:35.000+0000", "updated": "2013-08-05T19:11:35.000+0000" }, { "id": "408953", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T22:06:10.000+0000", "updated": "2017-03-03T22:06:10.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }