{ "id": "92355", "key": "TIMOB-9262", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "13406", "description": "Sprint 2012-10 API", "name": "Sprint 2012-10 API", "archived": true, "released": true, "releaseDate": "2012-05-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-24T16:11:22.000+0000", "created": "2012-05-24T14:33:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "17459", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "91286", "key": "TIMOB-8976", "fields": { "summary": "Android: window focus event it's not triggered when going back to the parent window", "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": "29467", "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": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T06:16:43.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. Feature Request\r\nCustomer is using a mix of lightweight and heavyweight windows. They want to get the same behavior on lightweight windows when blur and focus, as it happens in heavyweight windows. \r\n\r\nh4. Test case \r\n{code}\r\nvar win1 = Ti.UI.createWindow(\r\n\t{backgroundColor:'white',}\r\n\t//{fullscreen: false}\r\n\t);\r\nvar button1 = Ti.UI.createButton();\r\nbutton1.addEventListener('click', function() {\r\n var win2 = Ti.UI.createWindow(\r\n \t\t{backgroundColor:'black',}\r\n \t//{fullscreen: false}\r\n );\r\n win2.addEventListener('focus', function() {\r\n Ti.API.info(\"win2 focused\");\r\n });\r\n win2.addEventListener('blur', function() {\r\n Ti.API.info(\"win2 blur\");\r\n });\r\n win2.open();\r\n});\r\n \r\nwin1.add(button1);\r\nwin1.addEventListener('focus', function() {\r\n Ti.API.info(\"win1 focused\");\r\n});\r\nwin1.addEventListener('blur', function() {\r\n Ti.API.info(\"win1 blur\");\r\n});\r\nwin1.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: We need focus and blur events in the lightweight windows", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 2.1.0\r\nJavascript Engine: V8 \r\nPlatform & version: Android 2.x \r\nDevice Details: Android emulator \r\nHost Operating System: OS X 10.7.3\r\nTitanium Studio version: 2.0", "comment": { "comments": [ { "id": "196014", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Tested this with today's build, working fine. Testcase:\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n\tbackgroundColor:'white',\r\n});\r\nvar button1 = Ti.UI.createButton();\r\nbutton1.addEventListener('click', function() {\r\n\tvar button2 = Ti.UI.createButton();\r\n\tbutton2.addEventListener('click',function(){\r\n\t\twin2.close();\r\n\t}); \r\n var win2 = Ti.UI.createWindow({\r\n \tbackgroundColor:'black',\r\n });\r\n win2.addEventListener('focus', function() {\r\n Ti.API.info(\"win2 focused\");\r\n });\r\n win2.addEventListener('blur', function() {\r\n Ti.API.info(\"win2 blur\");\r\n });\r\n win2.add(button2);\r\n win2.open();\r\n \r\n});\r\n \r\n\r\nwin1.add(button1);\r\nwin1.addEventListener('focus', function() {\r\n Ti.API.info(\"win1 focused\");\r\n});\r\nwin1.addEventListener('blur', function() {\r\n Ti.API.info(\"win1 blur\");\r\n});\r\nwin1.open();\r\n{code}", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-05-24T16:04:49.000+0000", "updated": "2012-05-24T16:04:49.000+0000" }, { "id": "197416", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nVerified via steps in comments.\r\n\r\nSDK: 2.1.0.v20120605140359\r\nStudio: 2.1.0.201206041625\r\nOS: Snow Leopard\r\nAndroid: V8\r\nDevices Tested: Nexus One 2.2.2, Nexus S 4.0.4", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-05T16:05:58.000+0000", "updated": "2012-06-05T16:05:58.000+0000" }, { "id": "283496", "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:16:43.000+0000", "updated": "2013-12-10T06:16:43.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }