Bug 1293710 - Activity Stream Highlights: Consider bookmarks without history too. r=ahunt

MozReview-Commit-ID: If6HmIIp7sT

--HG--
extra : rebase_source : 4925672e9e1e5f99e2f24739388c43e42b546f69
This commit is contained in:
Sebastian Kaspari 2016-09-02 19:26:55 +02:00
parent f8363edb76
commit e0879f0149

View File

@ -1169,7 +1169,8 @@ public class BrowserProvider extends SharedBrowserDatabaseProvider {
DBUtils.qualifyColumn(Bookmarks.TABLE_NAME, Bookmarks.URL) + " = " +
DBUtils.qualifyColumn(History.TABLE_NAME, History.URL) + " " +
"WHERE " + DBUtils.qualifyColumn(Bookmarks.TABLE_NAME, Bookmarks.DATE_CREATED) + " > " + threeDaysAgo + " " +
"AND " + DBUtils.qualifyColumn(History.TABLE_NAME, History.VISITS) + " <= 3 " +
"AND (" + DBUtils.qualifyColumn(History.TABLE_NAME, History.VISITS) + " <= 3 " +
"OR " + DBUtils.qualifyColumn(History.TABLE_NAME, History.VISITS) + " IS NULL) " +
"AND " + DBUtils.qualifyColumn(Bookmarks.TABLE_NAME, Bookmarks.IS_DELETED) + " = 0 " +
// TODO: Implement block list (bug 1298783)
"ORDER BY " + DBUtils.qualifyColumn(Bookmarks.TABLE_NAME, Bookmarks.DATE_CREATED) + " DESC " +