{ "id": "84541", "key": "TIMOB-7023", "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": "12097", "description": "", "name": "Sprint 2012-05", "archived": true, "released": true, "releaseDate": "2012-03-11" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-29T13:30:52.000+0000", "created": "2012-01-06T15:16:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_window", "parity", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-02T09:14:53.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": "Run sample code below.\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#000000', \r\n navBarHidden:true\r\n});\r\n\r\nwin1.addEventListener(\"open\", function(e) {\r\n\tTi.API.debug(\"*****************OPENED\");\r\n});\r\n\r\nwin1.addEventListener(\"focus\", function(e) {\r\n\tTi.API.debug(\"****************FOCUSED\");\r\n});\r\n\r\nwin1.open();\r\n{code}\r\n\r\nIn the log, we can find it fires focus first and then open.\r\n\r\nExpected Result:\r\nfire open first and then focus.", "attachment": [], "flagged": false, "summary": "Android: HW window fires open and focus events in wrong order", "creator": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "184692", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Any chance of merging this fix into 1.8.2, or is it too late?", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-02-29T13:34:56.000+0000", "updated": "2012-02-29T13:34:56.000+0000" }, { "id": "184699", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Too late. We are releasing 1.8.2 in next couple of hours.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-29T13:47:51.000+0000", "updated": "2012-02-29T13:47:51.000+0000" }, { "id": "185204", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nSDK: 2.0.0.v20120305174654\r\nAndroid: V8\r\nStudio: 2.0.0.201203051741\r\nOS: Snow Leopard\r\nDevices Tested: Nexus One 2.2.2, Revolution 2.3.4, Xoom 3.2.1, Galaxy Nexus 4.0.2", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-06T11:50:22.000+0000", "updated": "2012-03-06T11:50:22.000+0000" }, { "id": "188874", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Same problem exists in iOS, using SDK 2.0.0.v20120325213306.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-27T12:08:22.000+0000", "updated": "2012-03-27T12:08:22.000+0000" }, { "id": "188887", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Shawn - can you please file an iOS bug for this issue?", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-27T12:51:22.000+0000", "updated": "2012-03-27T12:51:22.000+0000" }, { "id": "188898", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-27T13:02:12.000+0000", "updated": "2012-03-27T13:02:12.000+0000" }, { "id": "188899", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Shawn - Thanks.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-27T13:09:06.000+0000", "updated": "2012-03-27T13:09:06.000+0000" }, { "id": "190028", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Update: this problem still exists under Android 3.2 (emulator).", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-05T13:09:54.000+0000", "updated": "2012-04-05T13:09:54.000+0000" }, { "id": "190033", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Oops...never mind. Android 3.2 is fine. I switched emulators and didn't realize I had to clean the project.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-05T13:21:24.000+0000", "updated": "2012-04-05T13:21:24.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }