{ "id": "87547", "key": "TIMOB-7926", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-03T17:21:07.000+0000", "created": "2012-03-08T02:35:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_tabgroup", "qe-testadded" ], "versions": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [ { "id": "29490", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "115554", "key": "TIMOB-14130", "fields": { "summary": "Android: Window events, windows in the Tab and test", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T05:59:46.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": "Window open event doesn't get fired, using tabgroup to open the window.\r\nh4. Repro Steps\r\n1. Run the below code.\r\n2. The window open event doesn't get fired. \r\n\r\n{code}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff', title: 'Win 1' });\r\ntabGroup.addTab(Ti.UI.createTab({\r\n window: win,\r\n title: win.title\r\n}));\r\n\r\nwin.addEventListener('open', function() {\r\n alert('win1 opened!');\r\n});\r\n\r\ntabGroup.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Window open event doesn't fire using tabgroup to open the window", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android 2.2.2\r\nLG Optimus V\r\nTi SDK 2.0.x CI build, 1.8.1, 1.8.2", "comment": { "comments": [ { "id": "186721", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nSDK: 2.0.0.v20120315140247\r\nAndroid: V8, Rhino\r\nStudio: 2.0.0.201203142055\r\nOS: Snow Leopard\r\nDevices Tested: Emulator 2.2, Revolution 2.3.4, Xoom 3.2.1\r\n\r\n{code:title=app.js}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff', title: 'Win 1' });\r\n\r\ntabGroup.addTab(Ti.UI.createTab({\r\n window: win,\r\n title: win.title\r\n}));\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext:'no window open event fired'\r\n});\r\n\r\nwin.add(label);\r\n\r\nwin.addEventListener('open', function() {\r\n\tlabel.text = 'window open event fired';\r\n alert('win1 opened!');\r\n});\r\n\r\ntabGroup.open();\r\n{code}", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-15T16:07:44.000+0000", "updated": "2012-03-15T16:07:44.000+0000" }, { "id": "193670", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Open to update label", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-03T17:20:49.000+0000", "updated": "2012-05-03T17:20:49.000+0000" }, { "id": "283464", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5074\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T05:59:46.000+0000", "updated": "2013-12-10T05:59:46.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }