{ "id": "166742", "key": "AC-4871", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-03-23T13:59:23.000+0000", "created": "2017-03-22T15:00:39.000+0000", "labels": [ "android", "backbutton" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T13:59:23.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Testcase:\r\n* Create a Window\r\n* Attach an event listener using:\r\n\r\n{code:javascript}\r\n// Somecontroller.js \r\n$.getView().addEventListener('androidback', function(e) {\r\ne.cancelBubble = true;\r\nreturn false;\r\n});\r\n{code}\r\n\r\n* Press the native back-button on Android\r\n\r\nExpected: The window should remain open.\r\nResult: The window will close regardless.\r\n\r\nWorkaround: handling the event *android:back* (which is presumably deprecated?) +does+ seem to prevent the window from closing, as soon as you define it. I'm confused as to why it was deprecated since it seems to work better. Also, no console warning is thrown by still using the deprecated event.\r\n", "attachment": [], "flagged": false, "summary": "androidback event will always bubble", "creator": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "environment": "Android 6.0.1, Ti SDK 6.0.1.GA, Alloy 1.9.5", "comment": { "comments": [ { "id": "414754", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I can't reproduce the issue as described. I am using the same code \r\n{code}\r\n$.container.open();\r\n\r\n$.container.addEventListener('androidback', function(e) {\r\n e.cancelBubble = true;\r\n return false;\r\n}); \r\n{code}\r\n{code}\r\n\r\n\t\r\n\t\r\n\r\n{code}\r\n\r\nWindow stays open in Android 6.0.1. Tested in SDK 6.0.2.GA. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-03-22T16:47:48.000+0000", "updated": "2017-03-22T16:47:48.000+0000" }, { "id": "415265", "author": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "updateAuthor": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "created": "2017-03-23T10:08:23.000+0000", "updated": "2017-03-23T10:08:23.000+0000" }, { "id": "415286", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-03-23T13:59:23.000+0000", "updated": "2017-03-23T13:59:23.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }