{ "id": "104325", "key": "TIMOB-11654", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14621", "description": "2012 Sprint 23 API", "name": "2012 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-13T02:21:49.000+0000", "created": "2012-11-02T17:42:55.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_tabgroup", "qe-review", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "23899", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "inwardIssue": { "id": "103240", "key": "TIMOB-11434", "fields": { "summary": "TiAPI: Assigning to to \"tabs\" property of TabGroup only works as expected on iOS ", "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": "2014-06-19T12:43:04.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": "See the description in TIMOB-11434.", "attachment": [], "flagged": false, "summary": "Android: Assigning to to \"tabs\" property of TabGroup does not work", "creator": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [ { "id": "107111", "key": "TIMOB-12159", "fields": { "summary": "Backport 3_0_X: TIMOB-11654", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } ], "reporter": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "226167", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Steps for FR:\r\n1. Run the test case in TIMOB-11434 for both old style tabgroup and action bar style tabgroup. Should see a tab group opens with tab1 and tab2.\r\n2. Run the code below for both old style tabgroup and action bar style tabgroup. Should see a tab group opens with tab2 and tab3. After clicking the button \"Add tab4\", tab4 should be added to the tab group.\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n \r\n \r\n//\r\n// create tab1 and win1\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n \r\nvar label1 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 1',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n});\r\n \r\nwin1.add(label1);\r\n \r\n//\r\n// create tab2 and win2\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n \r\nvar label2 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 2',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n});\r\n \r\nwin2.add(label2);\r\n\r\nvar button = Titanium.UI.createButton({\r\n\ttop: 10,\r\n\ttitle: 'Add tab4'\r\n});\r\nbutton.addEventListener('click', function(e) {\r\n\ttabGroup.addTab(tab4);\r\n});\r\nwin2.add(button);\r\n\r\n//\r\n// create tab3 and win3\r\n//\r\nvar win3 = Titanium.UI.createWindow({ \r\n title:'Tab 3',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab3 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 3',\r\n window:win3\r\n});\r\n \r\nvar label3 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 3',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n});\r\n \r\nwin3.add(label3);\r\n\r\n//\r\n// create tab4 and win4\r\n//\r\nvar win4 = Titanium.UI.createWindow({ \r\n title:'Tab 4',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab4 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 4',\r\n window:win4\r\n});\r\n \r\nvar label4 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 4',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n});\r\n \r\nwin4.add(label4);\r\n \r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup({\r\n tabs: [tab1] \r\n});\r\n\r\ntabGroup.setTabs([tab2]);\r\ntabGroup.addTab(tab3);\r\n \r\n// open tab group\r\ntabGroup.open();\r\n{code}\r\n3. Run KS for sanity check.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-05T19:05:03.000+0000", "updated": "2012-11-09T18:43:49.000+0000" }, { "id": "226168", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3378", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-05T19:08:26.000+0000", "updated": "2012-11-05T19:08:26.000+0000" }, { "id": "233931", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nSDK: 3.1.0.v20130110133402, 3.0.1.v20130109180643\r\nStudio:3.0.1.201212181159\r\n\r\n'tabs' property of TabGroup works perfectly.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-11T03:03:12.000+0000", "updated": "2013-01-11T03:03:12.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }