mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 913457 - Part 1: Add "Remove" to Top Sites grid items. r=sola
This commit is contained in:
parent
ff7aedb506
commit
70e2a0a536
@ -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.
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user