{ "id": "63324", "key": "TIMOB-2692", "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": "11239", "name": "Release 1.6.0 M06", "archived": true, "released": true, "releaseDate": "2011-01-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:49.000+0000", "created": "2011-04-15T03:27:09.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "regression", "release-1.6.0", "reported-1.5.1", "reported-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:49.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}

In 1.5.1 and 1.6.0 as of today, the activeTab\nproperty of the tab group is undefined after the tab group is\ninitially created. To reproduce, add the following code to a\ndefault Titanium-generated project:

\n
\n\ntabGroup.addTab(tab1);  \ntabGroup.addTab(tab2);  \ntabGroup.setActiveTab(tab2);\n\n// open tab group\ntabGroup.open(); \n \nTi.API.info(\"tabGroup: \" + tabGroup.activeTab);\n
{html}", "attachment": [ { "id": "18190", "filename": "app.js", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:27:10.000+0000", "size": 1616, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "activeTab undefined", "creator": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "129205", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

(from [dfac4ccef9c30b6f537cb42fd81962484105209d])\n[#2692 state:fixed-in-qa] rework activeTab get\nmechanism for TabGroup

\n

reworked mechanism for getting activeTab value for\nTabGroupProxy. If no activeTab is manually set then the activeTab\nwill reference the first tab created. The call to getActiveTab will\nreturn the correct tab even if the tabGroup has not yet been\nopened. If getActiveTab is called when no tabs have been added then\na runtime exception is throw since the activeTab property must\nreturn a tabProxy object rather than an index.
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/dfac4ccef9c3...

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:27:10.000+0000", "updated": "2011-04-15T03:27:10.000+0000" }, { "id": "129206", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

Please use attached app to verify fix.

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:27:10.000+0000", "updated": "2011-04-15T03:27:10.000+0000" }, { "id": "129207", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

verified on Nexus S / 2.3.2

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:27:11.000+0000", "updated": "2011-04-15T03:27:11.000+0000" }, { "id": "130783", "author": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "body": "rollback wrong update", "updateAuthor": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "created": "2011-04-15T07:22:26.000+0000", "updated": "2011-04-15T07:22:26.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }