Bug 750707 - Check for bookmarks should only consider normal bookmarks (r=margaret)

This commit is contained in:
Lucas Rocha
2012-06-02 14:23:45 -04:00
parent 472bbfbc82
commit 6bc277a0de

View File

@@ -376,10 +376,13 @@ public class LocalBrowserDB implements BrowserDB.BrowserDBIface {
}
public boolean isBookmark(ContentResolver cr, String uri) {
// This method is about normal bookmarks, not the Reading List
Cursor cursor = cr.query(mBookmarksUriWithProfile,
new String[] { Bookmarks._ID },
Bookmarks.URL + " = ?",
new String[] { uri },
Bookmarks.URL + " = ? AND " +
Bookmarks.PARENT + " != ?",
new String[] { uri,
String.valueOf(Bookmarks.FIXED_READING_LIST_ID) },
Bookmarks.URL);
int count = cursor.getCount();