{ "id": "62168", "key": "TIMOB-1536", "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": "11234", "name": "Release 1.6.0 M01", "archived": true, "released": true, "releaseDate": "2010-12-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:27.000+0000", "created": "2011-04-15T02:55:21.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "release-1.6.0", "tabGroup", "tabgroup" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:27.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}

Test case app.js:

\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('tabGroup.activeTab: ' + tabGroup.activeTab);\n    Ti.API.info('tabGroup.activeTab.title: ' + tabGroup.activeTab.title);\n});\n        \ntabGroup.open();\n
\n

tabGroup.activeTab will return index of the previous\ntab you were on, not the activeTab. In fact, according to our docs,\nit should return the tab object of the current tab.

{html}", "attachment": [], "flagged": false, "summary": "Android: TabGroup.activeTab returns index when should be tab object, AND index is wrong", "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": "125967", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [0ebb6cb682acafca9b062a649c9708a0ff5aa034])\nMerge branch 'master' of https://github.com/dizzymonkey/titanium_mobile\n[#1536 state:fixed-in-qa] \nhttps://github.com/appcelerator/titanium_mobile/commit/0ebb6cb682ac...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:55:22.000+0000", "updated": "2011-04-15T02:55:22.000+0000" }, { "id": "125968", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

G2 - 2.2.1, G1 - 1.6 emulator 2.1 Titanium SDK version: 1.6.0\n(01/06/11 08:47 8b2fd0e). verified correct behavior on iOS 4gt ipod\ntouch

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:55:22.000+0000", "updated": "2011-04-15T02:55:22.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }