{ "id": "163760", "key": "TIMOB-23989", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-10-17T16:34:54.000+0000", "created": "2016-10-05T22:47:20.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-6.0.0", "regression" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-10-25T22:01:35.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": "This is a regression.\r\n\r\nh5.Steps to reproduce:\r\n\r\n1. Use the code below in the app.js\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nwin.addEventListener('click',function(){\r\n var win1 = Ti.UI.createWindow({\r\n backgroundColor:'teal'\r\n });\r\n \r\n win1.open();\r\n});\r\n\r\nwin.open();\r\n{code}\r\n2. Click on the first window.\r\n3. You should see the second window with the background color teal. \r\n4. Press the android back button.\r\n\r\nh5.Actual results:\r\n1. The app closes.\r\n\r\nh5. Expected results:\r\n1. App should go back to the first window rather than closing. \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: When the back button is pressed on android it closes the app even if it is not the last window with SDK 6.0.0", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio : 4.7.0.201607250649\r\nTi SDK : 6.0.0.v20161005072811\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.2\r\nMAC El Capitan : 10.11.6\r\nAppc NPM : 4.2.7\r\nAppc CLI : 5.5.0\r\nNode: 4.5.0\r\nNexus 6P - Android 7.0.0", "closedSprints": [ { "id": 733, "state": "closed", "name": "2016 Sprint 21 SDK", "startDate": "2016-10-08T00:53:00.000Z", "endDate": "2016-10-22T00:53:00.000Z", "completeDate": "2016-10-24T03:58:08.547Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "398193", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Probably this broke it : https://github.com/appcelerator/titanium_mobile/pull/8465", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-05T23:03:06.000+0000", "updated": "2016-10-05T23:03:06.000+0000" }, { "id": "398943", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8511", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-13T23:55:17.000+0000", "updated": "2016-10-13T23:55:17.000+0000" }, { "id": "399823", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nNow when the back button is pressed & the windows is not the first window the app does not exit/close.\r\nClosing.\r\n\r\nAppc Studio : 4.8.0.201610171310\r\nSDK Version : 6.0.0.v20161024184632\r\nMac OS Version : 10.11.6\r\nXcode Version : Xcode 8.0 Build version 8A218a\r\nAppc CLI AND Appc NPM : {\"NPM\":\"4.2.8-9\",\"CLI\":\"6.0.0-65\"}\r\nTi CLI : 5.0.10\r\nAlloy : 1.9.3\r\nNode : v4.6.0\r\nNexus 6 - Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-25T22:01:23.000+0000", "updated": "2016-10-25T22:01:23.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }