{ "id": "105649", "key": "TIMOB-11888", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15272", "description": "2013 Sprint 04 API", "name": "2013 Sprint 04 API", "archived": true, "released": true, "releaseDate": "2013-02-25" }, { "id": "14814", "description": "2013 Sprint 04", "name": "2013 Sprint 04", "archived": true, "released": true, "releaseDate": "2013-02-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-23T00:24:55.000+0000", "created": "2012-11-28T23:42:31.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_tabgroup", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "25937", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "107923", "key": "AC-2381", "fields": { "summary": "android:back doesn't fire on Android/Kindle Fire emulator when placed inside TabGroup", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-17T09:30:07.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": "'androidback' does not work with tab groups.\r\n{code}\r\nvar tabgroup = Ti.UI.createTabGroup({navBarHidden: true});\r\nvar win1 = Ti.UI.createWindow();\r\nvar tab1 = Ti.UI.createTab({window: win1, title: 'tab1'});\r\ntabgroup.addTab(tab1);\r\ntabgroup.open();\r\n\r\nwin1.addEventListener('androidback', function() {\r\n alert(\"hello\");\r\n});\r\n{code}\r\n\r\nTesting steps: \r\n1. Run code\r\n2. Hit back button\r\n3. Alert should pop up, but application closes instead.", "attachment": [], "flagged": false, "summary": "Android: 'androidback' does not work with tabGroup", "creator": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "235272", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "And neither does android:back\r\nNo way to catch this event in 3.0.0 tab groups.", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-01-21T23:30:17.000+0000", "updated": "2013-01-21T23:30:17.000+0000" }, { "id": "237968", "author": { "name": "reyjexter", "key": "reyjexter", "displayName": "Rey Bumalay", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "reyjexter", "key": "reyjexter", "displayName": "Rey Bumalay", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-11T15:49:47.000+0000", "updated": "2013-02-11T15:49:47.000+0000" }, { "id": "237969", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Rey. It is currently scheduled to be fixed in 3.1.0.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-11T15:56:24.000+0000", "updated": "2013-02-11T15:56:24.000+0000" }, { "id": "238941", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "With the 3.0.0 release we moved windows within tabgroups from heavyweight to lightweight windows. So the windows no longer fire these events.\r\n\r\nThese event handlers must instead be attached to the tab group itself. Will update docs for the same\r\n\r\n{code}\r\n//This will work.\r\ntabgroup.addEventListener('androidback', function() {\r\n alert(\"hello\");\r\n});\r\n\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-19T21:28:02.000+0000", "updated": "2013-02-19T21:35:38.000+0000" }, { "id": "238953", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/3889", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-19T23:07:01.000+0000", "updated": "2013-02-19T23:07:01.000+0000" }, { "id": "239468", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR merged and reviewed.", "updateAuthor": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-22T22:59:31.000+0000", "updated": "2013-02-22T22:59:31.000+0000" }, { "id": "239532", "author": { "name": "reyjexter", "key": "reyjexter", "displayName": "Rey Bumalay", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For confirmation, I think this bug has been fixed starting 3.0.2 not 3.1.\r\n\r\nWe tested androidback tabgroup event on 3.0.2 and it seem to work. ", "updateAuthor": { "name": "reyjexter", "key": "reyjexter", "displayName": "Rey Bumalay", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-23T14:20:16.000+0000", "updated": "2013-02-23T14:20:16.000+0000" }, { "id": "239624", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Code is working fine when used 'tabgroup.addEventListener' instead of 'win1.addEventListener'.\r\nEnvironment used for verification -\r\nTitanium SDK: 3.1.0.v20130223030327\r\nTitanium SDK: 3.0.0.GA\r\nTitanium SDK: 3.0.2.GA\r\nTitanium  Studio:3.0.2.201302141201\r\nDevice : Samsung GALAXY Note Android 2.3.6\r\n", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-25T09:38:10.000+0000", "updated": "2013-02-25T09:38:10.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }