{ "id": "173794", "key": "TIMOB-27177", "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": "20845", "name": "Release 8.1.1", "archived": false, "released": true, "releaseDate": "2019-08-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-08-22T14:26:56.000+0000", "created": "2019-06-21T01:25:14.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "close", "engSchedule", "exitonclose", "regression", "window" ], "versions": [ { "id": "20432", "name": "Release 8.0.1", "archived": false, "released": true, "releaseDate": "2019-05-15" } ], "issuelinks": [ { "id": "57705", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "173772", "key": "TIMOB-27162", "fields": { "summary": "Android: App closes on window close still earlier window is open.", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "57732", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "173806", "key": "TIMOB-27183", "fields": { "summary": "Android: SKD 8.0.2.GA, 8.0.1.GA has Window Leaks.", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-08-22T14:26:56.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": "*Summary:*\r\nAs of Titanium 8.0.1, there is a regression where the app exit behavior has changed after closing the root window from a child window. After closing the root window...\r\n* Closing the immediate child window will home-out instead of exiting the app.\r\n* Opening another child window and then closing it will cause an app exit instead of displaying the parent window.\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below code on Android.\r\n# Tap on the \"Open\" button in Window 1. _(Will close Window 1 after opening Window 2.)_\r\n# Tap on the \"Open\" button in Window 2.\r\n# Tap on the \"Close\" button in Window 3.\r\n# Notice the app exits. _(This is a bug. Should close Window 3 and display Window 2.)_\r\n# Relaunch the app.\r\n# Tap on the \"Open\" button in Window 1.\r\n# Tap on Android's Back button in Window 2.\r\n# Relaunch the app.\r\n# Notice the splash screen was *NOT* shown. _(This is a bug. App did not exit when pressing back button when it should have.)_\r\n\r\n{code:javascript}\r\nvar window1 = Ti.UI.createWindow({\r\n\ttitle: \"Window 1\",\r\n\tbackgroundColor: \"white\",\r\n});\r\nvar openButton = Ti.UI.createButton({\r\n\ttitle: \"Open\",\r\n});\r\nopenButton.addEventListener(\"click\", function() {\r\n\tvar window2 = Ti.UI.createWindow({\r\n\t\ttitle: \"Window 2\",\r\n\t\tbackgroundColor: \"white\",\r\n\t});\r\n\tvar openButton = Ti.UI.createButton({\r\n\t\ttitle: \"Open\",\r\n\t});\r\n\topenButton.addEventListener(\"click\", function() {\r\n\t\tvar window3 = Ti.UI.createWindow({\r\n\t\t\ttitle: \"Window 3\",\r\n\t\t\tbackgroundColor: \"white\",\r\n\t\t});\r\n\t\tvar closeButton = Ti.UI.createButton({\r\n\t\t\ttitle: \"Close\",\r\n\t\t});\r\n\t\tcloseButton.addEventListener(\"click\", function() {\r\n\t\t\twindow3.close();\r\n\t\t});\r\n\t\twindow3.add(closeButton);\r\n\t\twindow3.open();\r\n\t});\r\n\twindow2.add(openButton);\r\n\twindow2.open();\r\n\twindow1.close();\r\n});\r\nwindow1.add(openButton);\r\nwindow1.open();\r\n{code}\r\n\r\n*Work-around:*\r\nDo not close the root window immediately after opening the child window. Instead, close the root window via the child window's \"close\" listener.\r\n", "attachment": [], "flagged": false, "summary": "Android: Closing root window from child causes app exit issues as of 8.0.1", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1153, "state": "closed", "name": "2019 Sprint 15", "startDate": "2019-07-15T18:30:38.331Z", "endDate": "2019-07-28T18:30:00.000Z", "completeDate": "2019-07-29T15:34:51.860Z", "originBoardId": 114 }, { "id": 1157, "state": "closed", "name": "2019 Sprint 16", "startDate": "2019-07-29T15:35:47.313Z", "endDate": "2019-08-11T15:35:00.000Z", "completeDate": "2019-08-12T07:57:02.552Z", "originBoardId": 114 }, { "id": 1160, "state": "closed", "name": "2019 Sprint 17", "startDate": "2019-08-12T07:59:28.950Z", "endDate": "2019-08-25T07:59:00.000Z", "completeDate": "2019-08-26T15:35:29.980Z", "originBoardId": 114 }, { "id": 1146, "state": "closed", "name": "2019 Sprint 13", "startDate": "2019-06-18T06:36:49.723Z", "endDate": "2019-07-01T06:36:00.000Z", "completeDate": "2019-07-01T16:45:24.126Z", "originBoardId": 114 }, { "id": 1149, "state": "closed", "name": "2019 Sprint 14", "startDate": "2019-07-01T16:55:04.813Z", "endDate": "2019-07-14T16:55:00.000Z", "completeDate": "2019-07-15T15:41:02.311Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "449251", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/10988", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-21T01:49:27.000+0000", "updated": "2019-06-21T01:49:27.000+0000" }, { "id": "450148", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (8.1.x): https://github.com/appcelerator/titanium_mobile/pull/11093", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-07-30T02:22:36.000+0000", "updated": "2019-07-30T02:22:36.000+0000" }, { "id": "450168", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR passed. Waiting for for 8.1.0.GA release to merge PR", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-07-30T20:33:08.000+0000", "updated": "2019-07-30T20:33:08.000+0000" }, { "id": "450468", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (8.3.x): https://github.com/appcelerator/titanium_mobile/pull/11144", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-14T01:34:25.000+0000", "updated": "2019-08-14T01:34:25.000+0000" }, { "id": "450621", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to master, 8_3_X and 8_1_X.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-08-20T16:59:05.000+0000", "updated": "2019-08-20T16:59:05.000+0000" }, { "id": "450725", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket* fix verified in SDK version {{8.2.0.v20190820104021}}, {{8.1.1.v20190820143437}} and {{8.3.0.v20190820103430}}.\r\n\r\nTest and other information can be found at:\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/10988\r\nPR (8.1.x): https://github.com/appcelerator/titanium_mobile/pull/11093\r\nPR (8.3.x): https://github.com/appcelerator/titanium_mobile/pull/11144", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-22T14:26:50.000+0000", "updated": "2019-08-22T14:26:50.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }