{ "id": "62122", "key": "TIMOB-1490", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-08-20T15:45:55.000+0000", "created": "2011-04-15T02:54:11.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [ { "id": "20041", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:51:06.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": "{html}

Not sure how to address this one. It appears that the Android OS\ndoesn't guarantee when it will call events on activities. For\nexample it's possible for a hidden activity to have onStart called\nbefore onStop. Or it at least appears that way. It doesn't provide.\nTherefore it's not possible to successfully destroy a single\nresource like MapView.

\n

See Helpdesk\n30371

{html}", "attachment": [], "flagged": false, "summary": "Android: Race condition of Window focus/blur", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "175987", "author": { "name": "ziggythehamster", "key": "ziggythehamster", "displayName": "Keith Gable", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have this problem. Focus and blur seem to only fire when the window is initially opened/closed, and not after that point. I have to synthesize focus/blur events like so:\r\n\r\n{code:javascript}\r\nopen: function(params) {\r\n\tvar self = this;\r\n\tself.win.open(params);\r\n\r\n\tif (Ti.Platform.name == \"android\") {\r\n\t\tself.focus(); // run focus callback to workaround Android/Ti issue.\r\n\t}\r\n},\r\nclose: function(params) {\r\n\tvar self = this;\r\n\r\n\tif (Ti.Platform.name == \"android\") {\r\n\t\tself.blur(); // run blur callback to workaround Android/Ti issue.\r\n\t}\r\n\r\n\tself.win.close(params);\r\n}\r\n{code}\r\n\r\nNote that these functions are members of a map/object, which is why their syntax is sort of weird.", "updateAuthor": { "name": "ziggythehamster", "key": "ziggythehamster", "displayName": "Keith Gable", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-13T14:36:50.000+0000", "updated": "2011-12-13T14:36:50.000+0000" }, { "id": "215222", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "No runnable test code and link doesn't work, ticket marked as invalid. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-20T15:45:55.000+0000", "updated": "2012-08-20T15:45:55.000+0000" }, { "id": "414923", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:51:06.000+0000", "updated": "2017-03-22T20:51:06.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }