{ "id": "62167", "key": "TIMOB-1535", "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": "11230", "name": "Release 1.5.0 M05", "archived": true, "released": true, "releaseDate": "2010-12-13" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-04-15T02:55:21.000+0000", "created": "2011-04-15T02:55:20.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "tabGroup", "tabgroup" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-03T05:58:20.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": "{html}

Also, tabGroup.activeTab.title returns undefined.

\n

Test case:

\n
\n\nTitanium.UI.setBackgroundColor('#000');\nvar tabGroup = Titanium.UI.createTabGroup();\n\nfor (var i = 0; i < 4; i++) {\n    var win = Ti.UI.createWindow({\n        title: 'Tab ' + i,\n        backgroundColor: '#fff'\n    });\n    var tab = Ti.UI.createTab({\n        title: 'Tab ' + i,\n        window: win\n    });\n    tabGroup.addTab(tab);\n}\n\ntabGroup.addEventListener('focus', function(e) {\n    Ti.API.info('index: ' + e.index);\n    Ti.API.info('previousIndex: ' + e.previousIndex);\n    Ti.API.info('previousTab.title: ' + e.previousTab.title);\n    Ti.API.info('tab.title: ' + e.tab.title);\n    Ti.API.info('tabGroup.activeTab.title: ' + tabGroup.activeTab.title);\n});\n        \ntabGroup.open();\n
\n

After the app launches, click Tab 1 and you'll see the info\noutput in the console refers to Tab 0.

{html}", "attachment": [], "flagged": false, "summary": "Android: TabGroup focus event args refer to previous tab, not current tab", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "125966", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This looks to be a duplicate of #2071,\nwhich should now be resolved (minus the setActiveTab bug which I'll\nbe merging the fix for soon)

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:55:21.000+0000", "updated": "2011-04-15T02:55:21.000+0000" }, { "id": "408765", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing issue due to time passed and irrelevance of the ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T05:58:20.000+0000", "updated": "2017-03-03T05:58:20.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }