{ "id": "104373", "key": "TIMOB-11664", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14621", "description": "2012 Sprint 23 API", "name": "2012 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-13T02:55:08.000+0000", "created": "2012-11-05T11:51:03.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "3.0.0beta2", "api", "module_tabgroup", "qe-and100112", "qe-testadded", "regression" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "22556", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "63771", "key": "TIMOB-3139", "fields": { "summary": "Android: UI.Window - Window in tabgroup focus event does not fire", "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 } } } }, { "id": "22555", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "93959", "key": "TIMOB-9811", "fields": { "summary": "Android:Tabgroup:Focus event for a tab is showing wrong source name.", "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": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-12-04T18:06:07.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": "Tabgroup focus event fired twice on launch of application with tabgroup.\r\n\r\nThis is a regression and does not happen on 2.1.3 and 2.1.4\r\n\r\nSteps to Reproduce:\r\n1. Create an application with code below\r\n2. Launch the application and check console\r\n\r\nActual Result:\r\nThe tabgroup focus event is fired twice and one of those have source undefined. Following are the console logs:\r\nI/TiAPI(8612): -------------> win1 focus event fired! - win 1\r\nI/TiAPI(8612): -------------> tab1 focus event fired! - Tab 1\r\nI/TiAPI(8612): -------------> tabGroup focus event fired! - Tab 1\r\nI/TiAPI(8612): -------------> tabGroup focus event fired! - undefined\r\n\r\nExpected Result:\r\nThe tabgroup focus event should be fired only once\r\n\r\n{code}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\tname: \"win 1\"\r\n});\r\nvar tab1 = Ti.UI.createTab({\r\n\tname: \"Tab 1\",\r\n\ttitle:'Tab 1',\r\n\twindow:win1\r\n});\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n\tname: \"win 2\",\r\n\ttitle:'Tab 2',\r\n\tbackgroundColor:'#fff'\r\n});\r\nvar tab2 = Ti.UI.createTab({\r\n\tname: \"Tab 2\",\r\n\ttitle:'Tab 2',\r\n\twindow:win2\r\n});\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n\r\ntabGroup.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> tabGroup focus event fired! - ' + e.source.name);\r\n});\r\ntab1.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> tab1 focus event fired! - ' + e.source.name);\r\n});\r\ntab2.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> tab2 focus event fired! - ' + e.source.name);\r\n});\r\nwin1.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> win1 focus event fired! - ' + e.source.name);\r\n});\r\nwin2.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> win2 focus event fired! - ' + e.source.name);\r\n});\r\n\r\ntab1.addEventListener('blur', function(e){\r\n\tTi.API.info('**************> tab1 blur event fired! - ' + e.source.name);\r\n});\r\ntab2.addEventListener('blur', function(e){\r\n\tTi.API.info('**************> tab2 blur event fired! - ' + e.source.name);\r\n});\r\nwin1.addEventListener('blur', function(e){\r\n\tTi.API.info('**************> win1 blur event fired! - ' + e.source.name);\r\n});\r\nwin2.addEventListener('blur', function(e){\r\n\tTi.API.info('**************> win2 blur event fired! - ' + e.source.name);\r\n});\r\n\r\ntabGroup.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: TabGroup: Tabgroup focus event fired twice on application launch and one of those with source as undefined", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 3.0.0.201210301422\r\nTitanium SDK:3.0.0.v20121030170824\r\nAndroid Device: LG P970(v2.2), Galaxy Nexus (v4.0)\r\n", "comment": { "comments": [ { "id": "226171", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "focus event is propagating when it shouldn't.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-05T19:11:39.000+0000", "updated": "2012-11-05T19:11:39.000+0000" }, { "id": "226901", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3402", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-09T18:25:45.000+0000", "updated": "2012-11-09T18:25:45.000+0000" }, { "id": "226902", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For FR, please run the above test case for 'android:targetSdkVersion=\"8\"' and 'android:targetSdkVersion=\"14\"' to make sure it works fine for both old-style tabgroup and action bar style tabgroup.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-09T18:29:36.000+0000", "updated": "2012-11-09T18:29:36.000+0000" }, { "id": "227161", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/3418", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-13T18:48:58.000+0000", "updated": "2012-11-13T18:48:58.000+0000" }, { "id": "229853", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Tested on: \r\nTitanium Studio, build: 3.0.0.201211301903\r\nTitanium SDK, builds: 3.0.0.v20121130200208; 3.1.0.v20121203181001\r\nDevices: Samsung Galaxy S III (4.0.4)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T18:05:39.000+0000", "updated": "2012-12-04T18:05:39.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }