Bug 1197171 - Remove "Mark as read/unread" options from Top Sites grid view context menu. r=mhaigh
authorSebastian Kaspari <s.kaspari@gmail.com>
Fri, 28 Aug 2015 10:02:25 +0200
changeset 260414 360fdece5ebb437abf7a0b39d267c4fc3e3cfef2
parent 260413 71966f6ae76486d15fca99abe07ddb0d2ebbbf85
child 260415 ee9881d7a21c1e3aab8285dde3914be8e25db1e0
push id14990
push users.kaspari@gmail.com
push dateWed, 02 Sep 2015 08:15:44 +0000
treeherderfx-team@360fdece5ebb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmhaigh
bugs1197171
milestone43.0a1
Bug 1197171 - Remove "Mark as read/unread" options from Top Sites grid view context menu. r=mhaigh
mobile/android/base/home/TopSitesPanel.java
--- a/mobile/android/base/home/TopSitesPanel.java
+++ b/mobile/android/base/home/TopSitesPanel.java
@@ -370,16 +370,20 @@ public class TopSitesPanel extends HomeF
 
         if (!StringUtils.isShareableUrl(info.url) || GeckoProfile.get(getActivity()).inGuestMode()) {
             menu.findItem(R.id.home_share).setVisible(false);
         }
 
         if (!RestrictedProfiles.isAllowed(view.getContext(), Restriction.DISALLOW_PRIVATE_BROWSING)) {
             menu.findItem(R.id.home_open_private_tab).setVisible(false);
         }
+
+        // We only show these menu items on the reading list panel:
+        menu.findItem(R.id.mark_read).setVisible(false);
+        menu.findItem(R.id.mark_unread).setVisible(false);
     }
 
     @Override
     public boolean onContextItemSelected(MenuItem item) {
         if (super.onContextItemSelected(item)) {
             // HomeFragment was able to handle to selected item.
             return true;
         }