{ "id": "133116", "key": "AC-1517", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-09-01T06:53:00.000+0000", "created": "2014-07-14T08:28:55.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:58.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": "ActionBar allows to set home button as UP - it works as it should when setDisplayHomeAsUp is invoked, however when property displayHomeAsUp is set within xml it's not working at all:\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\t\r\n\t\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Property displayHomeAsUp in menu/actionbar not working when set in alloy xml", "creator": { "name": "aslan", "key": "aslan", "displayName": "Aslan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aslan", "key": "aslan", "displayName": "Aslan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 3.3.0.201407100905\r\nTitanium SDK: 3.3.0.v20140710142512\r\nAlloy:1.4.0-rc5\r\nCLI: 3.3.0-rc4\r\nosx 10.9", "comment": { "comments": [ { "id": "314371", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hi, \r\nWe have tested this project with test code bellow and it's working in Ti SDK 3.3.0-RC.\r\n \r\n \r\nh5. TESTING ENVIRONMENT:\r\n \r\nTi CLI 3.3.0-rc\r\nTitanium SDK: 3.3.0.RC and 3.2.X.GA\r\nMin SdkVersion=\"10\", Target SdkVersion=\"14\"\r\nAndroid Device and Emulator\r\n\r\nh5. STEPS TO TEST\r\n \r\n\r\n1. Create a new alloy project.\r\n2. Copy and paste the \"index.js\" code segment given below to the project \"index.js\" file. \r\n3. Copy and paste the \"index.xml\" code segment given below to the project \"index.xml\" file.\r\n4. Copy and paste the \"alloy.js\" code segment given below to the project \"alloy.js\" file.\r\n5. In the project tiapp.xml file replace \"\" with the \"tiapp.xml\" code segment given below.\r\n6. Run the project in android emulator or device.\r\n7. Home button is showing an up arrow on it's left.\r\n8. Click the home button to see Alert message \"Home icon clicked\"\r\n \r\nh5. EXPECTED RESULT\r\n \r\nHome button should display and works as a one level up button\r\n\r\nh5. Actual STATUS\r\n\r\nIt's working\r\n\r\nh5. TEST CODES\r\n\r\nh4. index.js\r\n\r\n{code}\r\n\r\n$.tabGroup.addEventListener('open', function(e) {\r\n var activity = $.tabGroup.activity;\r\n \r\n if( Alloy.Globals.Android.Api >= 11 ) {\r\n activity.actionBar.title = \"DemoApp\";\r\n activity.actionBar.displayHomeAsUp = true; \r\n activity.actionBar.onHomeIconItemSelected = function() {\r\n alert(\"Home icon clicked!\");\r\n }; \r\n }\r\n});\r\n \r\n$.tabGroup.open();\r\n\r\n{code}\r\n\r\nh4. index.xml\r\n\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nh4. alloy.js\r\n\r\n{code}\r\n\r\nif( OS_ANDROID ) {\r\n Alloy.Globals.Android = { \r\n \"Api\" : Ti.Platform.Android.API_LEVEL\r\n };\r\n}\r\n\r\n{code}\r\n\r\nh4. tiapp.xml\r\n\r\n{code}\r\n\r\nfalse\r\n\r\n 14\r\n \r\n \r\n \r\n \r\n\r\n\r\n{code}\r\n\r\nThanks ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-16T07:45:07.000+0000", "updated": "2014-08-10T07:45:41.000+0000" }, { "id": "317844", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello [~aslan]!\r\n\r\nCan you please take a look to this with the testcase above, 3.3.0.GA and let us know if it's failing for you?\r\n\r\nTIA!", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-10T07:46:39.000+0000", "updated": "2014-08-10T07:46:39.000+0000" }, { "id": "321199", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Tested in 3.3.0.GA and works fine. Please test and if you still have an issue, please make a comment and provide a testcase that reproduces the issue in 3.3.0.GA. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-01T06:53:00.000+0000", "updated": "2014-09-01T06:53:00.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }