{ "id": "124709", "key": "TIMOB-16184", "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": "15935", "description": "2014 Sprint 06", "name": "2014 Sprint 06", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15936", "description": "2014 Sprint 06 SDK", "name": "2014 Sprint 06 SDK", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-23T23:41:42.000+0000", "created": "2014-01-12T20:34:09.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "andoid", "module_tabgroup", "qe-closed-3.2.3", "qe-testadded" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "36019", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "127009", "key": "TIMOB-16530", "fields": { "summary": "Android: setActive tab is not working", "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 } } } }, { "id": "35760", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "127009", "key": "TIMOB-16530", "fields": { "summary": "Android: setActive tab is not working", "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": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-07-26T06:14:35.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": "Steps to reproduce:\r\n1. Create a tabgroup and add 2 or more tabs via tabGroup.addTab method.\r\n2. set tab 1 as active tab via tabGroup.setActiveTab method\r\n3. open tabgroup.\r\n\r\nExpected result: tabgroup is open and active tab is #1.\r\n\r\nActual Result: tabgroup is open and active tab is #0.\r\n\r\nHere is a code snippet:\r\n{code}\r\n(function() {\r\n\t var tabGroup = Ti.UI.createTabGroup({\r\n});\r\nvar tab0 = Titanium.UI.createTab({\r\n window:Ti.UI.createWindow({title: \"win0\"}),\r\n title:'Tab 0',\r\n});\r\ntabGroup.addTab(tab0);\r\n \r\nvar tab1 = Titanium.UI.createTab({\r\n window:Ti.UI.createWindow({title: \"win1\"}),\r\n title:'Tab 1',\r\n});\r\ntabGroup.addTab(tab1);\r\n \r\nvar tab2 = Titanium.UI.createTab({\r\n window:Ti.UI.createWindow({title: \"win2\"}),\r\n title:'Tab 2',\r\n});\r\ntabGroup.addTab(tab2);\r\n \r\ntabGroup.setActiveTab(1);\r\n \r\ntabGroup.open();\r\n\t\r\n\t\t\r\n})();\r\n\r\n\r\n{code} \r\n\r\nWhen tabGroup is open you'll see the following log message:\r\n\r\n[ERROR] : TabGroupProxy: (KrollRuntimeThread) [353,353] Invalid tab index.", "attachment": [], "flagged": false, "summary": "Android: TabGroup setActiveTab not working if tabs are added with addTab method", "creator": { "name": "nadavh", "key": "nadavh", "displayName": "Nadav Hoze", "active": true, "timeZone": "Asia/Gaza" }, "subtasks": [], "reporter": { "name": "nadavh", "key": "nadavh", "displayName": "Nadav Hoze", "active": true, "timeZone": "Asia/Gaza" }, "environment": "Smasung Galaxy S2,\r\n4.1.2\r\nSDK 3.2.0", "comment": { "comments": [ { "id": "288072", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue with the provided test case on Samsung Galaxy Nexus device.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-14T05:19:27.000+0000", "updated": "2014-01-14T05:19:27.000+0000" }, { "id": "288246", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "PR:-\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5219", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-01-15T09:25:26.000+0000", "updated": "2014-01-15T09:25:26.000+0000" }, { "id": "301386", "author": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified fix with following environment:\r\n\r\nAppc Studio: 3.2.3.201404162038\r\nSDK build: 3.2.3.v20140417162517 and 3.3.0.v20140417173316\r\nacs: 1.0.14\r\nnpm: 1.3.2\r\nalloy:1.3.1\r\nCLI: titanium@3.2.3-beta\r\ntitanium-code-processor:1.1.1-beta1\r\nXcode: 5.1.1\r\nOsx: Mavericks(10.9.2)\r\nDevice: Nexus 7 (4.3) and Nexus 5 (4.4.2)\r\n\r\nTabgroup is now open and active tab is #1. Hence closing the issue.", "updateAuthor": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-18T08:35:30.000+0000", "updated": "2014-04-18T08:35:30.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }