mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1293710 - Group activity stream highlights by URL to avoid duplicates. r=ahunt
The same URL could be picked as highlight from history and from bookmarks. MozReview-Commit-ID: 5vBHluZKfAN --HG-- extra : rebase_source : 1fee3b2532670d0b9d472518f3648ee5b5bebb8e
This commit is contained in:
parent
de0e351a2d
commit
e8e8706e93
@ -1198,7 +1198,10 @@ public class BrowserProvider extends SharedBrowserDatabaseProvider {
|
||||
"ORDER BY " + History.DATE_LAST_VISITED + " DESC " +
|
||||
"LIMIT " + historyLimit + ")";
|
||||
|
||||
final String query = "SELECT DISTINCT * FROM (" + bookmarksQuery + " UNION ALL " + historyQuery + ");";
|
||||
final String query = "SELECT DISTINCT * " +
|
||||
"FROM (" + bookmarksQuery + " " +
|
||||
"UNION ALL " + historyQuery + ") " +
|
||||
"GROUP BY " + Combined.URL + ";";
|
||||
|
||||
return db.rawQuery(query, null);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user