Closed Bug 760604 Opened 12 years ago Closed 12 years ago

Custom menu should be able to handle change in showAsAction

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 15

People

(Reporter: sriram, Assigned: sriram)

Details

Attachments

(1 file)

Currently the custom menu can only handle changing a normal menu item to action-bar item. It should be able to handle the reverse (just in case, we want to move back the items for want of space).
Also, the implementation has issues in removing. It cannot remove the action-bar items.
Attached patch PatchSplinter Review
This patch fixes the following:
1. Removing of action-bar items is proper.
2. setShowAsAction can be changed dynamically.
3. For phones which doesn't support action-bar, the menu item stays with the usual menu display. (Say we expose addons to add the icon to the URL bar directly, the phones cannot have it, and it should stay with the normal menu).
Assignee: nobody → sriram
Attachment #629256 - Flags: review?(mbrubeck)
Attachment #629256 - Flags: review?(mbrubeck) → review+
https://hg.mozilla.org/mozilla-central/rev/d71cabc2f4fa
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 15
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: