From 3dff1cedc22620ab56fbd39f3703f19bb552ca34 Mon Sep 17 00:00:00 2001 From: John Reck Date: Fri, 10 Dec 2010 11:13:57 -0800 Subject: Makes CombinedCursor sync aware Bug: 3192765 SuggestionsAdapter.CombinedCursor was not setting account parameters Change-Id: I57c341383970105fde8cbb2a6cde3831125cef1b --- src/com/android/browser/SuggestionsAdapter.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/com/android/browser/SuggestionsAdapter.java') diff --git a/src/com/android/browser/SuggestionsAdapter.java b/src/com/android/browser/SuggestionsAdapter.java index 8c0635360..6473dfd29 100644 --- a/src/com/android/browser/SuggestionsAdapter.java +++ b/src/com/android/browser/SuggestionsAdapter.java @@ -498,10 +498,12 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable, OnCli 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) { -- cgit v1.2.3