{ "id": "107605", "key": "AC-1791", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-06T20:57:57.000+0000", "created": "2013-01-09T03:14:55.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40:41.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": [], "description": "*Problem description*\r\nThe onFocus and onBlur events of a TabGroup tab are fired twice on Android only.\r\n\r\n*Test case*\r\n{code}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n\ttitle : 'Tab 1',\r\n\ticon : 'KS_nav_ui.png',\r\n\twindow : Ti.UI.createWindow({\r\n\t\ttitle : 'Tab 1',\r\n\t\tbackgroundColor : '#fff'\r\n\t})\r\n});\r\n\r\nvar tab2 = Ti.UI.createTab({\r\n\ttitle : 'Tab 2',\r\n\ticon : 'KS_nav_views.png',\r\n\twindow : Ti.UI.createWindow({\r\n\t\ttitle : 'Tab 2',\r\n\t\tbackgroundColor : '#fff'\r\n\t})\r\n});\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n\r\ntab1.addEventListener('focus', function(e) {\r\n\tTi.API.info(\"client info tab got focus\");\r\n});\r\ntab1.addEventListener('blur', function(e) {\r\n\tTi.API.info(\"client info tab lost focus\");\r\n});\r\n\r\ntabGroup.open();\r\n{code}\r\n\r\n*Log*\r\n{code}\r\nclient info tab got focus\r\nclient info tab got focus\r\nclient info tab lost focus\r\nclient info tab lost focus\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Titanium.UI.Tab onFocus and onBlur events are fired twice", "creator": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.0\r\nMac OSX Mountain Lion\r\nAndroid", "comment": { "comments": [ { "id": "233699", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I cannot reproduce this, what Android version are you using?", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-09T11:23:22.000+0000", "updated": "2013-01-09T11:23:22.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }