{ "id": "88498", "key": "TIMOB-8192", "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-03-23T10:13:42.000+0000", "created": "2012-03-22T12:14:41.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "parity" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "15910", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "88574", "key": "TIMOB-8222", "fields": { "summary": "Android: Open event for window on first tab of tab group fires when it shouldn't", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-02-21T14:02:03.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": "Open event for windows on tabs do not fire when opened. This can be seen by adding open event listeners to the main tabs in KS. Currently, only the window associated with the active tab when the tab group is opened will fire a open event. ", "attachment": [], "flagged": false, "summary": "Android: Open events do not fire for windows on tabs", "creator": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "188042", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/1799 opened", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2012-03-22T12:49:13.000+0000", "updated": "2012-03-22T12:49:13.000+0000" }, { "id": "188191", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "Opened timob-8222 to address related bug on Android regarding open event for window on first tab when first tab is not the active tab with the tab group is opened.", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2012-03-23T08:43:43.000+0000", "updated": "2012-03-23T08:43:43.000+0000" }, { "id": "188463", "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.v20120322231759\r\nAndroid: V8, Rhino\r\nStudio: 2.0.0.201203221554\r\nOS: Snow Leopard\r\nDevices Tested: Nexus One 2.2.2, Nexus S 2.3.6\r\n\r\nUsed stand-alone test code (retroactively verified):\r\n\r\n{code:title=app.js}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nwin1.addEventListener('open', function(){\r\n\talert('win1 open event fired');\r\n});\r\n\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nwin2.addEventListener('open', function(){\r\n\talert('win2 open event fired');\r\n});\r\n\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-24T10:18:18.000+0000", "updated": "2012-03-24T10:18:18.000+0000" }, { "id": "222425", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "Just tested and it doesnt work :s\r\nSDK: 3.0.0.f185172e2\r\nAndroid: V8, Rhino\r\nOS: Moutain Lion\r\nDevices Tested: Galaxy S2 4.0.3\r\n\r\ncan we reopen this one?", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-10-07T17:13:44.000+0000", "updated": "2012-10-07T17:13:44.000+0000" }, { "id": "239094", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\nTitanium Studio, build: 3.0.2.201302191606\nTitanium SDK, build: 3.0.0.GA\nTitanium SDK, build: 3.0.2.GA\nDevice:\nSamsungS3 Android version 4.0.4\n\nDevice log:\n02-20 10:27:06.147: I/ALERT(3738): (KrollRuntimeThread) [609,609] win1 open event fired\n02-20 10:27:42.476: I/ALERT(3738): (KrollRuntimeThread) [6588,36938] win2 open event fired\n\nEmulator:\n[INFO][ALERT ( 268)] (KrollRuntimeThread) [495,495] win1 open event fired\n[INFO][ALERT ( 268)] (KrollRuntimeThread) [9956,10451] win2 open event fired", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-20T20:04:36.000+0000", "updated": "2013-02-20T20:04:36.000+0000" }, { "id": "239097", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-20T20:06:45.000+0000", "updated": "2013-02-20T20:06:45.000+0000" }, { "id": "239119", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Martin--we need a piece of code to reproduce the issue.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-20T21:16:37.000+0000", "updated": "2013-02-20T21:16:37.000+0000" }, { "id": "239223", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "@Ingo: my bad i didn't give enough information (tend to do that too much those dauys :s). After thinking about it i remembered what the sample was. Actually it was when i was playing with KS.I will test it a lot more, but KS has a lot of problems and that was one of them.\r\nMay be it's due to the target sdk of KS. Will report on it as soon as possible.", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2013-02-21T13:59:15.000+0000", "updated": "2013-02-21T13:59:15.000+0000" }, { "id": "239224", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "Just remembered also that tabs are loaded through url in KS, which might do a difference. Will test", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2013-02-21T14:02:03.000+0000", "updated": "2013-02-21T14:02:03.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }