{ "id": "103647", "key": "TIMOB-11539", "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": "14168", "description": "2012 Sprint 22 API", "name": "2012 Sprint 22 API", "archived": true, "released": true, "releaseDate": "2012-11-05" }, { "id": "14274", "description": "2012 Sprint 22", "name": "2012 Sprint 22", "archived": true, "released": true, "releaseDate": "2012-11-05" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-10-30T22:51:51.000+0000", "created": "2012-10-19T02:27:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "triage" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "22108", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "94644", "key": "TIMOB-9910", "fields": { "summary": "Android: Action Items", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } }, { "id": "22341", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "104042", "key": "TIMOB-11597", "fields": { "summary": "Android: Action bar displays differently based on launch orientation", "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" } }, "priority": { "name": "High", "id": "2" }, "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-11-07T18:30:09.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": "If the user specifies a custom applogo and creates an expandable action item, the logo changes when the item is expanded.\r\n\r\nGiven an android manifest like this:\r\n\r\n{code}\r\n \r\n 14\r\n \r\n \r\n \r\n \r\n \r\n \r\n{code}\r\n\r\nThe applogo image must exist in platforms/android/res/drawable/applogo.png and/or the appropriate density-specific drawables- folders. The icon must be different from the default titanium app icon. An unmistakably ugly one is attached for your testing pleasure.\r\n\r\nRun the sample code below:\r\n\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({fullscreen: false, backgroundColor: 'red'});\r\n\r\nwin.activity.onCreateOptionsMenu = function(e) {\r\n var item = e.menu.add({title: 'Expand'});\r\n item.showAsAction = Ti.Android.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW;\r\n\r\n var collapseActionButton = Ti.UI.createButton({\r\n title: 'Collapse'\r\n });\r\n collapseActionButton.addEventListener('click', function() {\r\n item.collapseActionView();\r\n });\r\n item.actionView = collapseActionButton;\r\n\r\n item.on('expand', function() {\r\n alert('Expanded menu item!');\r\n });\r\n item.on('collapse', function() {\r\n alert('Collapsed menu item!');\r\n });\r\n item.on('click', function() {\r\n alert('clicked!');\r\n });\r\n}\r\n\r\nwin.open();\r\n{code}\r\n\r\nNote that when the action item is expanded, the custom applogo disappears, replaced by the standard app icon (the Up affordance is also displayed, which is correct).\r\n\r\n", "attachment": [ { "id": "32783", "filename": "applogo.png", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T02:38:15.000+0000", "size": 5574, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Action bar logo changes when action item is expanded", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "225437", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Might possibly be related.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-29T22:17:14.000+0000", "updated": "2012-10-29T22:17:14.000+0000" }, { "id": "225438", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This may actually be the right behavior. From re-reading the Android docs, the \"app logo\" can be wider than the \"app icon\", so what may be happening here is that the app logo is being collapsed to the app icon when the action bar needs more space.\n\nI think someone who understands this code should take a look at this and the linked issue to make sure we're doing the correct thing.\n\n", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-29T22:20:27.000+0000", "updated": "2012-10-29T22:20:27.000+0000" }, { "id": "225607", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested using a native Android project with action bar. It has the same behavior as described in the ticket. So this is a native Android behavior. Mark the ticket as invalid. ", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-30T22:51:25.000+0000", "updated": "2012-10-30T22:51:25.000+0000" }, { "id": "251265", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As per Arthur Evans and Ping Wang comments, the ticket seems to be invalid. So, closing the issue.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-10T10:15:51.000+0000", "updated": "2013-05-10T10:15:51.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }