{ "id": "89254", "key": "TIMOB-8443", "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": "13417", "description": "Sprint 2012-13 API", "name": "Sprint 2012-13 API", "archived": true, "released": true, "releaseDate": "2012-07-01" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14127", "description": "Sprint 2012-19 API", "name": "Sprint 2012-19 API", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14271", "description": "2012 Sprint 19", "name": "2012 Sprint 19", "archived": true, "released": true, "releaseDate": "2012-09-24" } ], "resolution": null, "resolutiondate": null, "created": "2012-03-30T09:39:39.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_tabgroup", "parity", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "56883", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172171", "key": "TIMOB-26354", "fields": { "summary": "Android: Refactor TabGroup and introduce new style", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "21894", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "103079", "key": "TIMOB-11365", "fields": { "summary": "Android: TabGroup - \"Toggle orientationModes\" doesn't work from landscape", "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": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-09-28T15:06:27.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Setting orientationModes on a tab group proxy seems to have no effect. This can be observed in the tab layout in KS by trying to force orientationModes.\r\n\r\nA work around is to set the orientation in the tiapp.xml via:\r\n\r\n\"\"\r\n\r\nA fix should be investigated though to allow for setting the orientation modes in a programmatic way. In addition, it appears that setting the orientation modes for a window on a tab have no effect either.\r\n\r\nh3. TabGroup orientationMode example\r\n\r\n1. Run the code bellow in an application.\r\n2. Initially the orientations of the group should be locked in both left and right landscape.\r\n3. Click the 'Toggle orientationModes' button.\r\n4. You should now be able to orientate the group in all modes (ex: landscape, portrait).\r\n5. Click the toggle button again. Should lock the group back into landscape only mode.\r\n6. Repeat until you are satisfied.\r\n\r\n{code:javascript}\r\n\r\nvar modes = [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT];\r\nvar modesEnabled = true;\r\n\r\nvar tabGroup = Ti.UI.createTabGroup({\r\n orientationModes: modes\r\n});\r\n\r\nvar tabWindow = Ti.UI.createWindow();\r\ntabGroup.addTab(Ti.UI.createTab({window: tabWindow, title: 'Lonely tab'}));\r\n\r\nvar toggleModesButton = Ti.UI.createButton({\r\n title: 'Toggle orientationModes'\r\n});\r\ntoggleModesButton.addEventListener('click', function() {\r\n tabGroup.orientationModes = modesEnabled ? [ ] : modes;\r\n modesEnabled = !modesEnabled;\r\n});\r\ntabWindow.add(toggleModesButton);\r\n\r\ntabGroup.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: setting orientationModes on a Ti.UI.TabGroup does not work", "creator": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "197556", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "On hold until we can have a parity discussion on supporting setting orientation modes per a tab.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-06T12:51:00.000+0000", "updated": "2012-06-06T12:51:00.000+0000" }, { "id": "202814", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This ticket will only focus on fixing orientation modes on the group. This will NOT fix setting orientation modes\r\nper a tab window. Another ticket should be opened to address that issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-11T17:40:28.000+0000", "updated": "2012-07-11T17:40:28.000+0000" }, { "id": "202820", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created [PR #2543|https://github.com/appcelerator/titanium_mobile/pull/2543] to resolve issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-11T17:57:47.000+0000", "updated": "2012-07-11T17:57:47.000+0000" }, { "id": "213668", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with:\r\nTitanium Studio, build: 2.1.1.201207271312\r\nTitanium SDK: 2.2.0\r\nHTC EVO 4.0.3", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-09T15:31:21.000+0000", "updated": "2012-08-09T15:31:21.000+0000" }, { "id": "213672", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "reopened to correct comment", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-09T15:39:09.000+0000", "updated": "2012-08-09T15:39:09.000+0000" }, { "id": "213744", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T04:49:21.000+0000", "updated": "2012-08-10T04:49:21.000+0000" }, { "id": "215541", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Occurs on:\r\nTitanium SDK: 2.1.2.v20120816171609\r\nTitanium  Studio: 2.1.2.201208192014\r\nDevice:\r\nSamsung GALAXY Note (2.3.6)\r\n\r\nFixed with: SDK version: 2.2.0", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-21T23:13:10.000+0000", "updated": "2012-08-21T23:13:10.000+0000" }, { "id": "218227", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Re-opening due to regression seen in a newer PR:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/2794#issuecomment-8430975\r\n\r\n...but not caused by that newer PR. Namely:\r\n\r\nIf you set targetSdkVersion to 14 and run this fail case, app crashes right away with: https://gist.github.com/64ba7b65be6e668b4fb6\r\n\r\nI'll put it in Sprint 19, but of course feel free to move it won't make it.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-09-10T13:41:47.000+0000", "updated": "2012-09-10T13:41:47.000+0000" }, { "id": "219814", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T14:07:14.000+0000", "updated": "2012-09-19T14:07:14.000+0000" }, { "id": "271449", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nSDK: 3.1.3.v20130916153052\r\nAppcelertaor Studio: 3.1.3.201309132456\r\nOS: OSX 10.8.4\r\nDevice: iPod touch2(iOS7)\r\nXcode: 5.0 GM seed\r\nalloy@1.2.2-cr\r\nCLI version : 3.1.2\r\n\r\nClicking the 'toggle orientation mode' does not make the app support Portrait orientation mode.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-17T10:37:53.000+0000", "updated": "2013-09-17T10:37:53.000+0000" }, { "id": "280705", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Clicking the 'toggle orientation mode does not make the app stay on Portrait only mode then it can be changed to any any orientation.", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-22T07:24:23.000+0000", "updated": "2013-11-22T07:24:23.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }