Bug 1117746 - Share asset is intermittently missing from recent nightlies r=rnewman

This commit is contained in:
Mark Finkle 2015-01-05 12:18:45 -05:00
parent 6d1c501608
commit 70fc8c5202

View File

@ -444,7 +444,9 @@ public class GeckoMenuItem implements MenuItem {
@Override
public MenuItem setVisible(boolean visible) {
if (mVisible != visible) {
// Action views are not normal menu items and visibility can get out
// of sync unless we dispatch whenever required.
if (isActionItem() || mVisible != visible) {
mVisible = visible;
if (mShouldDispatchChanges) {
mMenu.onItemChanged(this);