{ "id": "144961", "key": "TIMOB-18593", "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": [], "resolution": null, "resolutiondate": null, "created": "2015-02-19T10:02:09.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "ActionBar", "Menuitem" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:49.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "The following example shows that setting a MenuItem title via {{applyProperties}} doesn't work, while setting it on creation or via the property or its setter does work.\r\n\r\nThe applyProperties is listed in documentation as being available for Android for this proxy.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n fullscreen: true\r\n});\r\n\r\nwin.activity.onCreateOptionsMenu = function(e){\r\n var menu = e.menu;\r\n var menuItem = menu.add({ \r\n title: \"On create\", \r\n showAsAction: Ti.Android.SHOW_AS_ACTION_ALWAYS\r\n });\r\n menuItem.applyProperties({\r\n title: 'via applyProperties'\r\n });\r\n // menuItem.title = 'via property';\r\n // menuItem.setTitle('via setter');\r\n};\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: MenuItem's applyProperties doesn't work", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "3.5.0.GA", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }