Bug 913457 - Part 1: Add "Remove" to Top Sites grid items. r=sola

This commit is contained in:
Chenxia Liu 2014-05-20 14:02:58 -07:00
parent ff7aedb506
commit 70e2a0a536
2 changed files with 1 additions and 1 deletions

View File

@ -250,6 +250,7 @@ public class TopSitesGridView extends GridView {
info.url = cursor.getString(cursor.getColumnIndexOrThrow(TopSites.URL));
info.title = cursor.getString(cursor.getColumnIndexOrThrow(TopSites.TITLE));
info.type = cursor.getInt(cursor.getColumnIndexOrThrow(TopSites.TYPE));
info.historyId = cursor.getInt(cursor.getColumnIndexOrThrow(TopSites.HISTORY_ID));
}
/**
* Set an url open listener to be used by this view.

View File

@ -280,7 +280,6 @@ public class TopSitesPanel extends HomeFragment {
// Hide ununsed menu items.
menu.findItem(R.id.home_open_in_reader).setVisible(false);
menu.findItem(R.id.home_edit_bookmark).setVisible(false);
menu.findItem(R.id.home_remove).setVisible(false);
TopSitesGridContextMenuInfo info = (TopSitesGridContextMenuInfo) menuInfo;
menu.setHeaderTitle(info.getDisplayTitle());