{ "id": "160212", "key": "TIMOB-23366", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2016-06-02T12:45:06.000+0000", "created": "2016-05-12T15:32:44.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "issuelinks": [ { "id": "51666", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "160146", "key": "TIMOB-23349", "fields": { "summary": "Windows: Closing Windows opened via Ti.UI.Tab.open() does not work as expected", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "51667", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "147341", "key": "TIMOB-18856", "fields": { "summary": "Windows: hardware back button should close Ti.Window", "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": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-05-09T06:46:17.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Looking at other Windows apps the expected behaviour when using {{Ti.UI.Tab.open()}} to open a child Window and then pressing the device back button should close the child Window, revealing the previous Window again.\r\n\r\nExample for all of this:\r\n\r\n{code:js}\r\nvar colors = ['blue', 'gray', 'red'];\r\n\r\nfunction createWindow(depth) {\r\n\r\n var win = Ti.UI.createWindow({\r\n layout: 'vertical',\r\n backgroundColor: colors[depth % colors.length]\r\n });\r\n\r\n win.add(Ti.UI.createLabel({\r\n text: 'Depth ' + depth\r\n }));\r\n\r\n var openBtn = Ti.UI.createButton({\r\n top: 20,\r\n title: 'Open Child'\r\n });\r\n\r\n openBtn.addEventListener('click', function () {\r\n tabA.open(createWindow(depth + 1));\r\n });\r\n\r\n win.add(openBtn);\r\n\r\n if (depth > 0) {\r\n var closeViaWinBtn = Ti.UI.createButton({\r\n top: 20,\r\n title: 'Close via Window'\r\n });\r\n\r\n closeViaWinBtn.addEventListener('click', function () {\r\n win.close();\r\n });\r\n\r\n win.add(closeViaWinBtn);\r\n\r\n var closeViaTabBtn = Ti.UI.createButton({\r\n top: 20,\r\n title: 'Close via Tab'\r\n });\r\n\r\n closeViaTabBtn.addEventListener('click', function () {\r\n tabA.close(win);\r\n });\r\n\r\n win.add(closeViaTabBtn);\r\n\r\n var backViaWinButton = Ti.UI.Windows.createAppBarButton({\r\n icon: Ti.UI.Windows.SystemIcon.BACK\r\n });\r\n\r\n backViaWinButton.addEventListener('click', function () {\r\n win.close();\r\n });\r\n\r\n var backViaTabButton = Ti.UI.Windows.createAppBarButton({\r\n icon: Ti.UI.Windows.SystemIcon.BACKTOWINDOW\r\n });\r\n\r\n backViaTabButton.addEventListener('click', function () {\r\n tabA.close(win);\r\n });\r\n\r\n win.add(Ti.UI.Windows.createCommandBar({\r\n items: [backViaWinButton, backViaTabButton]\r\n }));\r\n }\r\n\r\n return win;\r\n}\r\n\r\nvar tabA = Ti.UI.createTab({\r\n title: 'Tab A',\r\n window: createWindow(0)\r\n});\r\n\r\nvar tabB = Ti.UI.createTab({\r\n title: 'Tab B',\r\n window: Ti.UI.createWindow({\r\n backgroundColor: 'green'\r\n })\r\n});\r\n\r\nTi.UI.createTabGroup({\r\n tabs: [tabA, tabB]\r\n}).open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Hardware back button exits app instead of closing window inside tab", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "5.3.0 RC", "comment": { "comments": [ { "id": "385653", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I can't reproduce this on my end with the latest 5_3_X on both WP 8.1 and Windows 10 Mobile.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-13T10:32:58.000+0000", "updated": "2016-05-13T10:32:58.000+0000" }, { "id": "387171", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "This seems to work with latest 5_3_X but I do get this in the logs:\r\n\r\n{code}\r\n[WARN] Window.close: Window is not opened or already closed\r\n{code}", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-05-31T14:11:35.000+0000", "updated": "2016-05-31T14:11:35.000+0000" }, { "id": "387223", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Oops that happens, it should be kept internal. I'll remove it soon. Nice catch!", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-31T23:43:28.000+0000", "updated": "2016-05-31T23:43:28.000+0000" }, { "id": "387414", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I think we can mark this \"Can't Reproduce\" for now. Feel free to reopen if that's not the case.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-02T12:45:06.000+0000", "updated": "2016-06-02T12:45:06.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }