{ "id": "166778", "key": "TIMOB-24531", "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": "19333", "description": "Patch release for important items that did not make it into 6.0.3", "name": "Release 6.0.4", "archived": false, "released": true, "releaseDate": "2017-04-27" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-03-24T21:11:03.000+0000", "created": "2017-03-24T13:28:39.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "primary" ], "versions": [ { "id": "19275", "description": "Patch release for 6.0.x regressions or important fixes", "name": "Release 6.0.3", "archived": false, "released": true, "releaseDate": "2017-03-22" } ], "issuelinks": [ { "id": "54708", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "167081", "key": "TIMOB-24575", "fields": { "summary": "Android: Back button on Android Phone is triggering a destroy event in latest SDK 6.0.3.GA", "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-04-13T07:53:29.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": "Additional windows will close when the back button is pressed even when {{exitOnClose}} is not specified.\r\n\r\n*TEST CASE*\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar lbl = Ti.UI.createLabel({\r\n\ttext:\"window 1\"\r\n})\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle:\"create\",\r\n\tbottom:10\r\n});\r\n\r\nbtn.addEventListener(\"click\",function(){\r\n\tvar win2 = Ti.UI.createWindow({\r\n\t backgroundColor: '#fff'\r\n\t});\r\n\tvar lbl2 = Ti.UI.createLabel({\r\n\t\ttext:\"Close to go to window 1\", color:\"#000\"\r\n\t});\r\n\twin2.add(lbl2);\r\n\twin2.open();\r\n})\r\n\r\nwin.add(btn);\r\nwin.add(lbl);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: onBackPressed behaviour does not work correctly", "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, "comment": { "comments": [ { "id": "415537", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8906\r\n6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8907", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T14:40:34.000+0000", "updated": "2017-03-24T14:40:34.000+0000" }, { "id": "415701", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR done.\r\nPR https://github.com/appcelerator/titanium_mobile/pull/8907 & https://github.com/appcelerator/titanium_mobile/pull/8906 merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:50:25.000+0000", "updated": "2017-03-24T21:14:40.000+0000" }, { "id": "415790", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in SDK 6.0.4.v20170324115015 & 6.1.0.v20170324141428.\r\n\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T21:14:16.000+0000", "updated": "2017-03-24T22:56:49.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }