{ "id": "165016", "key": "TIMOB-24225", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-12-22T15:47:53.000+0000", "created": "2016-12-14T15:58:35.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-6.1.0", "regression" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [ { "id": "54012", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "162244", "key": "TIMOB-23715", "fields": { "summary": "Android: Memory leak when window has listView inside", "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 } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-01-23T16:37:39.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": "Closing a {{Titanium.UI.Window}} does not fire the {{close}} event.\r\n\r\n*TEST CASE*\r\n{code:js}\r\nvar b = Ti.UI.createWindow({backgroundColor: 'red'}),\r\n w = Ti.UI.createWindow({backgroundColor: 'yellow'});\r\n\r\nw.addEventListener('close', function () {\r\n b.setBackgroundColor('green');\r\n});\r\nb.addEventListener('open', function () {\r\n w.addEventListener('open', function() {\r\n setTimeout(function () {\r\n w.close();\r\n }, 500);\r\n });\r\n w.open();\r\n});\r\n\r\nb.open();\r\n{code}\r\n\r\n*Actual*\r\n- Window is red\r\n\r\n*Expected*\r\n- Window is green", "attachment": [], "flagged": false, "summary": "Android: close event is not fired when a window is closed", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 784, "state": "closed", "name": "2016 Sprint 26 SDK", "startDate": "2016-12-17T01:24:57.928Z", "endDate": "2016-12-31T01:24:00.000Z", "completeDate": "2017-01-03T02:15:01.548Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "403378", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8685", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-14T16:04:30.000+0000", "updated": "2016-12-14T16:04:30.000+0000" }, { "id": "404098", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, Close event is now fired.\r\nTested on:\r\n\r\n{noformat}\r\nmacOS Sierra 10.12.2\r\nNexus 5X (6.0.1)\r\nPixel Xl (7.1.1)\r\nandroid emulator (4.4.2, 6.0)\r\nTi SDK: 6.1.0.v20170103224205\r\nAppc CLI: 6.1.0\r\nAppc NPM: 4.2.8\r\nNode v4.6.0\r\n{noformat}\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2017-01-04T18:39:15.000+0000", "updated": "2017-01-04T18:39:47.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }