mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 05:47:04 +00:00
Bug 890671: Addon icon is missing when the menu item adds a submenu. [r=mfinkle]
--HG-- extra : rebase_source : 9d27cd4ffd03c59c27d9eb9830f897efa09800c6
This commit is contained in:
parent
6888b9f40e
commit
525e075167
@ -1434,7 +1434,7 @@ abstract public class BrowserApp extends GeckoApp
|
||||
}
|
||||
}
|
||||
|
||||
final MenuItem item = menu.add(Menu.NONE, info.id, Menu.NONE, info.label);
|
||||
MenuItem item = menu.add(Menu.NONE, info.id, Menu.NONE, info.label);
|
||||
item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
|
||||
@Override
|
||||
public boolean onMenuItemClick(MenuItem item) {
|
||||
@ -1445,9 +1445,11 @@ abstract public class BrowserApp extends GeckoApp
|
||||
});
|
||||
|
||||
if (info.icon != null) {
|
||||
final int id = info.id;
|
||||
BitmapUtils.getDrawable(this, info.icon, new BitmapUtils.BitmapLoader() {
|
||||
@Override
|
||||
public void onBitmapFound(Drawable d) {
|
||||
MenuItem item = mMenu.findItem(id);
|
||||
if (d == null) {
|
||||
item.setIcon(R.drawable.ic_menu_addons_filler);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user