зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1203011 - Restricted profiles: Hide 'Remove' context menu item from Top Sites list. r=ally
--HG-- extra : commitid : BRlbpduV8IU extra : rebase_source : d61b7567dd124abc0e738636dac6fd7a9b1fa0bd extra : amend_source : 2ff2f7e7e100886e29e36e4683975cd1f9a5d91d
This commit is contained in:
Родитель
39192ba1c3
Коммит
e6743e5288
|
@ -342,6 +342,11 @@ public class TopSitesPanel extends HomeFragment {
|
|||
// Long pressed item was not a Top Sites GridView item. Superclass
|
||||
// can handle this.
|
||||
super.onCreateContextMenu(menu, view, menuInfo);
|
||||
|
||||
if (!RestrictedProfiles.isAllowed(view.getContext(), Restriction.DISALLOW_CLEAR_HISTORY)) {
|
||||
menu.findItem(R.id.home_remove).setVisible(false);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче