mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 867125 - Ignore deleted pinned sites in getTopSites query. r=wesj
This commit is contained in:
parent
d41fc3570b
commit
c0acf94e91
@ -237,8 +237,9 @@ public class LocalBrowserDB implements BrowserDB.BrowserDBIface {
|
||||
public Cursor getTopSites(ContentResolver cr, int limit) {
|
||||
// Filter out sites that are pinned
|
||||
String selection = DBUtils.concatenateWhere("", Combined.URL + " NOT IN (SELECT " +
|
||||
Bookmarks.URL + " FROM bookmarks WHERE bookmarks." +
|
||||
Bookmarks.PARENT + " == ?)");
|
||||
Bookmarks.URL + " FROM bookmarks WHERE " +
|
||||
DBUtils.qualifyColumn("bookmarks", Bookmarks.PARENT) + " == ? AND " +
|
||||
DBUtils.qualifyColumn("bookmarks", Bookmarks.IS_DELETED) + " == 0)");
|
||||
String[] selectionArgs = DBUtils.appendSelectionArgs(new String[0], new String[] { String.valueOf(Bookmarks.FIXED_PINNED_LIST_ID) });
|
||||
return filterAllSites(cr,
|
||||
new String[] { Combined._ID,
|
||||
|
Loading…
Reference in New Issue
Block a user