{ "id": "174270", "key": "TIMOB-27481", "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": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-10-22T22:23:38.000+0000", "created": "2019-10-17T14:33:55.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "back", "camera", "engSchedule", "overlay" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-10-22T22:23:38.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": "When a Camera activity with an overlay is opened from the first window in an application and the system's back button is pressed the application gets closed.\r\n\r\n*Test code:*\r\n_app.js_\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow(),\r\n\tbutton = Ti.UI.createButton({ title: 'Camera' });\r\nbutton.addEventListener('click', function () {\r\n\tTi.Media.showCamera({\r\n\t\toverlay: getOverlay()\r\n\t});\r\n});\r\nwin.add(button);\r\nwin.open();\r\n\r\nfunction getOverlay() {\r\n\tvar view = Ti.UI.createView({\r\n\t\tbackgroundColor: '#55990000',\r\n\t});\r\n\treturn view;\r\n}\r\n\r\n{code}\r\n\r\nOpening a camera activity from another window and clicking back works as expected - only the camera activity is closed.\r\n\r\nOne reason this may happen is that the camera activity with an overlay does not have a WindowProxy child and this raises the {{exitOnClose}} flag when we go back from it with only one window in the stack. ", "attachment": [], "flagged": false, "summary": "Android: Navigating back from camera overlay can wrongly close the app", "creator": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "subtasks": [], "reporter": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "environment": null, "closedSprints": [ { "id": 1169, "state": "closed", "name": "2019 Sprint 22", "startDate": "2019-10-21T15:38:21.747Z", "endDate": "2019-11-03T15:38:00.000Z", "completeDate": "2019-11-04T18:36:57.022Z", "originBoardId": 114 }, { "id": 1207, "state": "closed", "name": "2020 Sprint 20", "startDate": "2020-09-28T15:30:47.481Z", "endDate": "2020-10-09T15:30:00.000Z", "completeDate": "2020-10-09T16:33:43.453Z", "originBoardId": 114 }, { "id": 1208, "state": "closed", "name": "2020 Sprint 21", "startDate": "2020-10-12T16:34:00.000Z", "endDate": "2020-10-23T16:34:00.000Z", "completeDate": "2020-10-23T02:32:43.674Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457108", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12143", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-01T07:40:56.000+0000", "updated": "2020-10-01T07:40:56.000+0000" }, { "id": "457204", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "FR Passed for this ticket.", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-10-08T09:59:53.000+0000", "updated": "2020-10-08T09:59:53.000+0000" }, { "id": "457316", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 9.3.0.v20201022111908.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-22T22:23:32.000+0000", "updated": "2020-10-22T22:23:32.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }