{ "id": "89959", "key": "TIMOB-8714", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13401", "description": "Sprint 2012-09 Core", "name": "Sprint 2012-09 Core", "archived": true, "released": true, "releaseDate": "2012-05-06" }, { "id": "15576", "description": "2013 Sprint 16", "name": "2013 Sprint 16", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15578", "description": "2013 Sprint 16 API", "name": "2013 Sprint 16 API", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-07T21:45:56.000+0000", "created": "2012-04-13T01:07:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "core", "module_tabgroup", "parity", "qe-testadded", "regression" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-08-08T10:56:38.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": "h2. Problem description\r\n'Focus' events might not correctly handled when associated to a window set in tabGroup and with the url property\r\n\r\nh2. Steps to reproduce \r\n\r\nh3. Steps\r\n- Create a tabGroup with 2 windows.\r\n- Set the url property for each window and define 'focus' event listener in the two 'win1.js' and 'win2.js' files.\r\n- Don't set event listeners in the app.js\r\nResult: 'focus' event listeners ae not triggered on Android (on iOS works fine).\r\n\r\n\r\nh3. Code\r\n{code:lang=javascript}\r\n// app.js\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n url:'win1.js'\r\n});\r\n\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Win 1',\r\n window:win1\r\n});\r\n\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff',\r\n url:'win2.js'\r\n});\r\n\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Win 2',\r\n window:win2\r\n});\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n\r\ntabGroup.open();\r\n{code}\r\n\r\n\r\n{code:lang=javascript}\r\n// win1.js\r\nvar win1 = Ti.UI.currentWindow;\r\n\r\nwin1.addEventListener('focus',function(e){\r\n\talert('test win1');\r\n});\r\n\r\n{code}\r\n\r\n\r\n{code:lang=javascript}\r\n// win2.js\r\nvar win2 = Ti.UI.currentWindow;\r\n\r\nwin2.addEventListener('focus',function(e){\r\n\talert('test win2');\r\n});\r\n{code}\r\n\r\n\r\nh2. Additional notes:\r\nCustomer ticket : http://support-admin.appcelerator.com/display/APP-221687/conversation/read_all", "attachment": [], "flagged": false, "summary": "Android: 'focus' events are not correctly handled for windows in a tabGroup", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android OS\r\nTiSDK 1.8.2\r\n", "comment": { "comments": [ { "id": "192802", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just verified that this is already fixed in master, but was still present in 2.0.1GA2. It was likely fixed as a result of https://github.com/appcelerator/titanium_mobile/pull/2069.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-26T13:34:40.000+0000", "updated": "2012-04-26T13:43:10.000+0000" }, { "id": "199140", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed with SDK 2.1.0.v20120618154152.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-19T11:28:55.000+0000", "updated": "2012-06-19T11:28:55.000+0000" }, { "id": "265307", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\r\nThis is regression.\r\nevents are fired correctly in 3.1.1GA\r\nVerified with:\r\n\r\nStudio: 3.1.2.201308021524\r\nSDK: 3.1.2.v20130806104555\r\nacs:1.0.5\r\nalloy:1.2.0-alpha6\r\ntitanium:3.1.2-alpha\r\ntitanium-code-processor:1.0.2-alpha\r\nOS: OSX 10.8.4\r\nDevice: nexus 7(v4.3)\r\nXcode:4.6.3\r\n\r\nNo alert is being displayed.\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-07T10:22:31.000+0000", "updated": "2013-08-07T10:25:29.000+0000" }, { "id": "265412", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4553\r\n3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4554", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-07T18:56:24.000+0000", "updated": "2013-08-07T19:40:52.000+0000" }, { "id": "265540", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with:\r\n\r\nStudio: 3.1.2.201308071912\r\nSDK: 3.1.2.v20130807171139\r\nacs:1.0.5\r\nalloy:1.2.0-alpha6\r\ntitanium:3.1.2-alpha\r\ntitanium-code-processor:1.0.2-alpha\r\nOS: OSX 10.8.4\r\nDevice: nexus 7(v4.3)\r\nXcode:4.6.3\r\n\r\nfocus events working fine for windows in a tabGroup.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-08T10:56:38.000+0000", "updated": "2013-08-08T10:56:38.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }