Bug 750707 - Toggling bookmarks off should only apply to normal bookmarks (r=margaret)

This commit is contained in:
Lucas Rocha 2012-06-02 14:23:45 -04:00
parent 198c1e7a58
commit 1127c1e8c6

View File

@ -501,8 +501,10 @@ public class LocalBrowserDB implements BrowserDB.BrowserDBIface {
// Do this now so that the items still exist!
bumpParents(cr, Bookmarks.URL, uri);
final String[] urlArgs = new String[] { uri };
final String urlEquals = Bookmarks.URL + " = ?";
// Toggling bookmark on an URL should not affect the items in the reading list
final String[] urlArgs = new String[] { uri, String.valueOf(Bookmarks.FIXED_READING_LIST_ID) };
final String urlEquals = Bookmarks.URL + " = ? AND " + Bookmarks.PARENT + " != ?";
cr.delete(contentUri, urlEquals, urlArgs);
}