mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 830758 - Don't show 'Pin Site' option on pinned sites. r=mfinkle
This commit is contained in:
parent
ee7d41b0df
commit
a1f9daeb50
@ -195,10 +195,12 @@ public class AboutHomeContent extends ScrollView
|
||||
menu.findItem(R.id.abouthome_topsites_unpinall).setVisible(false);
|
||||
menu.findItem(R.id.abouthome_topsites_unpin).setVisible(false);
|
||||
} else {
|
||||
// If there's nothing pinned here, hide the clear item
|
||||
PinnedSite site = cursor.getPinnedSite(info.position);
|
||||
if (site == null) {
|
||||
// If there's nothing pinned here, hide the clear item
|
||||
menu.findItem(R.id.abouthome_topsites_unpin).setVisible(false);
|
||||
} else {
|
||||
menu.findItem(R.id.abouthome_topsites_pin).setVisible(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user