{ "id": "169989", "key": "ALOY-1584", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "19950", "name": "CLI Release 7.0.0", "archived": false, "released": true }, { "id": "19970", "name": "Alloy 1.10.8", "archived": false, "released": true, "releaseDate": "2017-11-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-06T19:16:11.000+0000", "created": "2017-10-11T04:23:10.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2017-11-08T17:14:38.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": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" } ], "description": "After testing further, this issue is only valid for Alloy projects.\r\n\r\nAs you can see in attached screenshot, there's a white back-button in Toolbar which is inherited by ActionBar when Toolbar is used as an ActionBar as per Appc Docs. But I could not find out any click event which can be raised on clicking this back-button just like we have `onHomeIconItemSelected` in ActionBar to add callback function.\r\n\r\nFor a workaround, we will need to use Alloy with Ti.UI.Window's open event like this:\r\n\r\n\r\n{code:java}\r\n$.win.activity.supportToolbar = $.toolBarID;\r\n\r\n$.win.addEventListener('open', function() {\r\n //Accessing the properties for ActionBar through it's own API\r\n $.win.activity.actionBar.displayHomeAsUp = true;\r\n $.win.activity.actionBar.onHomeIconItemSelected = function() {\r\n $.win.close();\r\n }\r\n});\r\n{code}\r\n\r\n\r\nSee below code for the screenshot.\r\n\r\n{code:java}\r\n\r\n \r\n \r\n\r\n \r\n \r\n