{ "id": "93006", "key": "TIMOB-9483", "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": "13408", "description": "Sprint 2012-12 API", "name": "Sprint 2012-12 API", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-14T18:01:31.000+0000", "created": "2012-06-08T12:10:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_window", "qe-testadded", "regression", "titanbeta" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "29493", "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-12-10T06:17:04.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": "h4.Problem\r\nThere is a regression in Mobile SDK 2.1.0.v20120607180246 that causes the 'focus' event of Windows to not fire.\r\n\r\nWorded in 2.1.0.v20120520110234\r\nBroken in 2.1.0.v20120607180246\r\n\r\n*Expected Result*: console log should show\r\n{panel}\r\n== set simple event listeners successfully\r\n== open event\r\n== focus event\r\n{panel}\r\n\r\n*Actual Result*: console log shows only\r\n{panel}\r\n== set simple event listeners successfully\r\n== open event\r\n{panel}\r\n\r\nh4.Testcase\r\n\r\n{panel:title=app.js}\r\n{code}\r\nvar TheWindow=Ti.UI.createWindow({\r\n url:'win1.js',\r\n layout:'vertical',\r\n navBarHidden:false\r\n });\r\nTheWindow.open();\r\n\r\n{code}\r\n{panel}\r\n\r\n{panel:title=win1.js}\r\n{code}\r\nvar MainWin=Ti.UI.currentWindow;\r\n\r\nfunction OnFocus()\r\n{\r\n Ti.API.info('== focus event');\r\n}\r\n\r\nfunction OnOpen()\r\n{\r\n Ti.API.info('== open event');\r\n}\r\n\r\nMainWin.addEventListener('focus',OnFocus);\r\nMainWin.addEventListener('open',OnOpen);\r\nTi.API.info('== set simple event listeners successfully');\r\n{code}\r\n{panel}\r\n", "attachment": [], "flagged": false, "summary": "Android: focus event no longer fires for Window", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "- Android 2.2 emulator\r\n- Titanium Mobile SDK 2.1.0.v20120607180246\r\n- Titanium Studio 2.0.3.201206051048\r\n\r\n", "comment": { "comments": [ { "id": "197988", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "HD ticket: http://support.appcelerator.com/tickets/APP-114148", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-11T08:20:34.000+0000", "updated": "2012-06-11T08:20:34.000+0000" }, { "id": "198021", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have verified on the latest CI build 2.1.0v20120608174150 and it is broken. Focus event does not fire.", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-11T11:26:52.000+0000", "updated": "2012-06-11T11:26:52.000+0000" }, { "id": "198749", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Verified fixed in SDK 2.1.0.v20120615132253. Thanks!", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-15T13:55:48.000+0000", "updated": "2012-06-15T13:55:48.000+0000" }, { "id": "199127", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206172244\r\nTi Mobile SDK 2.1.0.v20120618154152 hash r7830c03d\r\nOSX Lion 10.7.3\r\nNexus S OS 4.0.4\r\n\r\nThe expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-19T10:19:46.000+0000", "updated": "2012-06-19T10:19:46.000+0000" }, { "id": "283497", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4967\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T06:17:04.000+0000", "updated": "2013-12-10T06:17:04.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }