{ "id": "103063", "key": "TIMOB-11357", "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": "14165", "description": "2012 Sprint 21 API", "name": "2012 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-21T05:15:02.000+0000", "created": "2012-10-10T18:28:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_tabgroup", "qe-and100112", "qe-testadded", "regression", "tabgroup" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "21884", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "90998", "key": "TIMOB-8910", "fields": { "summary": "Android: Window \"focus\" event not firing when returning to main window of tabgroup in android", "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": "29492", "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-06-11T18:15: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": "Description:\r\nNoticed an unexpected console output, while testing TabGroup. When opening a second window by clicking an \"open win2\" button, should see in the console \"win1 blurred, win2 focused\", but the console shows \"win2 blurred, win2 focused\". The same output (\"win2 blurred, win2 focused\") is showing when closing the second window and opening the first one.\r\n\r\nThis is a regression, does not occur on 2.1.3.\r\n\r\nSteps:\r\n1. Run the following code and check the console:\r\n{code}\r\nvar win1 = Titanium.UI.createWindow();\r\nvar button1 = Ti.UI.createButton({title:'Open win2'});\r\nbutton1.addEventListener('click', function(){ tab1.open(win2); }); \r\nwin1.add(button1);\r\n \r\n//create win2. button2 closes win2\r\nvar win2 = Titanium.UI.createWindow({title:'Window 2'});\r\nvar button2 = Titanium.UI.createButton({title:'Close win2'});\r\nbutton2.addEventListener('click', function(){ win2.close(); }); \r\nwin2.add(button2);\r\n \r\nwin1.addEventListener('focus', function(e){Ti.API.info('win1 focused');}); \r\nwin1.addEventListener('blur', function(e){Ti.API.info('win1 blurred');}); \r\nwin2.addEventListener('focus', function(e){Ti.API.info('win2 focused');});\r\nwin2.addEventListener('blur', function(e){Ti.API.info('win2 blurred');});\r\n \r\nvar tabGroup = Titanium.UI.createTabGroup();\r\nvar tab1 = Titanium.UI.createTab({title:'Tab 1',window:win1});\r\ntabGroup.addTab(tab1);\r\ntabGroup.open();\r\n{code}\r\n2. Click \"open win2\" button\r\n3. Click \"close win2\" button\r\n\r\nExpected result:\r\nAfter step 2 should see in the console:\r\n{code}\r\nI/TiAPI(6623): win1 blurred\r\nI/TiAPI(6623): win2 focused\r\n{code}\r\nAfter step 2 should see in the console:\r\n{code}\r\nI/TiAPI(6623): win2 blurred\r\nI/TiAPI(6623): win1 focused\r\n{code}\r\n\r\nActual result:\r\nAfter steps 2 and 3 the console output looks the same:\r\n{code}\r\nI/TiAPI(6623): win2 blurred\r\nI/TiAPI(6623): win2 focused\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: TabGroup - Unexpected console output on Android", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nOS: Mac OS X Lion 10.7.4\r\nTitanium Studio, build: 3.0.0.201210090117\r\nTitanium SDK, build: 3.0.0.v20121009111437\r\nDevice: Samsung Galaxy III (4.0.4)", "comment": { "comments": [ { "id": "223347", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3.0.X PR: https://github.com/appcelerator/titanium_mobile/pull/3195\nMaster PR: https://github.com/appcelerator/titanium_mobile/pull/3175", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-13T00:21:57.000+0000", "updated": "2012-10-13T00:21:57.000+0000" }, { "id": "224046", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Verified and tested on:\r\nTitanium Studio, build: 3.0.0.201210151149\r\nTitanium SDK, builds: 3.0.0.v20121017100120; 3.1.0.v20121017102121\r\nDevice: Nexus 7 (4.1.1)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-17T20:41:03.000+0000", "updated": "2012-10-17T20:41:03.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }