{ "id": "63063", "key": "TIMOB-2431", "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": "11237", "name": "Release 1.6.0 M04", "archived": true, "released": true, "releaseDate": "2011-01-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:05.000+0000", "created": "2011-04-15T03:19:33.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect", "event", "open", "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:59:05.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}
The open event is never triggered in Android.
\nWhen you use this code nothing happens:
\n\nvar win1 = Ti.UI.createWindow({});\nvar win2 = Ti.UI.createWindow({});\n\nvar tabGroup = Ti.UI.createTabGroup({\n \n});\n\nvar tab = Titanium.UI.createTab({\n window:win1,\n title:'tab1'\n});\n\n\nvar tab2 = Titanium.UI.createTab({\n window:win2,\n title:'tab2'\n});\n\n\ntabGroup.addTab(tab2);\ntabGroup.addTab(tab);\n\ntabGroup.addEventListener('open', function(){\n Ti.API.error('tapGroup should be open!');\n});\n\ntabGroup.addEventListener('focus',function(){\n Ti.API.error('Event triggered!');\n});\n\ntabGroup.open();
\n
responsible:\"Don Thorp\"
[responsible:\"Don Thorp\"]
[tagged:android tagged:tabGroup tagged:event tagged:open]
You'll probably want to use open on the windows, not the tab\ngroup as a workaround. Windows are lazily loaded.
The window event is triggered before the tabgroup is shown. So\nthis isn't a solution for me.
Triage please.
(from [894bbc962dd88319c4d9eb100c1ff141f0885cea])\n[#2431 state:fixed-in-qa] Fire open event when\nTabGroup is opened.
\nAdded firing of open event to handlePostOpen()
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/894bbc962dd8...
Please verify the fix with the attached app which just wraps the\nabove example code.
\nUpon launching, you should see both events received in the\nlog.
\nThanks
\nOpie
[INFO] Titanium SDK version: 1.6.0 (01/10/11\n08:25 3452f06) g1 (1.6) and droid 1 (2.2.1) emulator running 2.1.\nThanks for test content!