{ "id": "103079", "key": "TIMOB-11365", "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": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-10-16T00:20:50.000+0000", "created": "2012-10-10T22:11:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_tabgroup", "qe-and100112", "qe-testadded", "tabgroup" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "21894", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "89254", "key": "TIMOB-8443", "fields": { "summary": "Android: setting orientationModes on a Ti.UI.TabGroup does not work", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "21928", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "103155", "key": "TIMOB-11393", "fields": { "summary": "Android: TabGroup.backgroundColor doesn't change background.", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-10-24T17:15:37.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": "Description:\r\nThe are two issues in this code, that were noticed in 3.0.0 while testing TabGroup. First one - the background color suppose to be \"red\", but it is \"black\". And second one - \"Toggle orientationModes\" does not work from landscape mode, but works fine from portrait.\r\n\r\nSteps:\r\n1. Run the following code in landscape:\r\n{code}\r\n var modes = [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT];\r\n\t\tvar modesEnabled = true;\r\n\t\t \r\n\t\tvar tabGroup = Ti.UI.createTabGroup({\r\n\t\t  orientationModes: modes,\r\n\t\t backgroundColor : 'red'\r\n\t\t});\r\n\t\t \r\n\t\tvar tabWindow = Ti.UI.createWindow();\r\n\t\ttabGroup.addTab(Ti.UI.createTab({window: tabWindow, title: 'Lonely tab'}));\r\n\t\t \r\n\t\tvar toggleModesButton = Ti.UI.createButton({\r\n\t\t  title: 'Toggle orientationModes'\r\n\t\t});\r\n\t\ttoggleModesButton.addEventListener('click', function() {\r\n\t\t  tabGroup.orientationModes = modesEnabled ? [ ] : modes;\r\n\t\t  modesEnabled = !modesEnabled;\r\n\t\t});\r\n\t\ttabWindow.add(toggleModesButton);\r\n\t\ttabGroup.open();\r\n{code}\r\n2. Click \"Toggle orientationModes\" button\r\n\r\nExpected:\r\nOrientation should be changed\r\n\r\nActual:\r\nOrientation is not changing\r\n", "attachment": [], "flagged": false, "summary": "Android: TabGroup - \"Toggle orientationModes\" doesn't work from landscape", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nOS: Mac OS X Lion 10.7.4\r\nTitanium Studio, build: 3.0.0.201210090117\r\nTitanium SDK, build: 3.0.0.v20121010130117\r\nDevice: Samsung Galaxy III (4.0.4)", "comment": { "comments": [ { "id": "223032", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I cannot reproduce the orientation issues, but do see the background color issue.\n\nWhen the application launches I can only have it in landscape (left and right) only.\nClicking the button allows full sensor control (landscape or portrait).\nBoth of which seem to be expect behavior.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-11T01:13:53.000+0000", "updated": "2012-10-11T01:13:53.000+0000" }, { "id": "223155", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created a new ticket (TIMOB-11393) for the background color bug.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-11T20:22:43.000+0000", "updated": "2012-10-11T20:26:50.000+0000" }, { "id": "223722", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Was not able to reproduce bad behavior on master or 3_0_X branches.\r\n\r\nDevice allows full rotation (sensor mode) when orientation modes\r\nis set to an empty array. Also when the modes is toggled back\r\nto landscape left & right, I can only rotate it between the two landscapes.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-16T00:20:50.000+0000", "updated": "2012-10-16T00:20:50.000+0000" }, { "id": "224813", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing the bug, since behavior that was described is correct, according to the doc.", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-24T17:15:37.000+0000", "updated": "2012-10-24T17:15:37.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }