Makes CombinedCursor sync aware
Bug: 3192765
SuggestionsAdapter.CombinedCursor was not setting account parameters
Change-Id: I57c341383970105fde8cbb2a6cde3831125cef1b
diff --git a/src/com/android/browser/SuggestionsAdapter.java b/src/com/android/browser/SuggestionsAdapter.java
index 8c06353..6473dfd 100644
--- a/src/com/android/browser/SuggestionsAdapter.java
+++ b/src/com/android/browser/SuggestionsAdapter.java
@@ -498,10 +498,12 @@
Uri.Builder ub = BrowserContract.Combined.CONTENT_URI.buildUpon();
ub.appendQueryParameter(BrowserContract.PARAM_LIMIT,
Integer.toString(mLinesPortrait));
+ BookmarkUtils.addAccountInfo(mContext, ub);
mCursor =
mContext.getContentResolver().query(ub.build(), COMBINED_PROJECTION,
selection,
(constraint != null) ? args : null,
+ BrowserContract.Combined.IS_BOOKMARK + " DESC, " +
BrowserContract.Combined.VISITS + " DESC, " +
BrowserContract.Combined.DATE_LAST_VISITED + " DESC");
if (mCursor != null) {