diff options
author | John Reck <jreck@google.com> | 2011-06-27 15:42:39 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-06-27 15:42:39 -0700 |
commit | 7ffb8957966fde0de338f4d42067d0edae295a9e (patch) | |
tree | e8f15f75fcb86006e363e242cd33797c5950a3c3 /src/com/android/browser/SuggestionsAdapter.java | |
parent | 32feebd05dc90785194df32b7a14c2e0ceba2b1e (diff) | |
download | packages_apps_Browser-7ffb8957966fde0de338f4d42067d0edae295a9e.zip packages_apps_Browser-7ffb8957966fde0de338f4d42067d0edae295a9e.tar.gz packages_apps_Browser-7ffb8957966fde0de338f4d42067d0edae295a9e.tar.bz2 |
Prevent duplicates in omnibox
Change-Id: Idf91591a981543fb84a73d08e3c5bbc2c7d23d6f
Diffstat (limited to 'src/com/android/browser/SuggestionsAdapter.java')
-rw-r--r-- | src/com/android/browser/SuggestionsAdapter.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/SuggestionsAdapter.java b/src/com/android/browser/SuggestionsAdapter.java index 242e170..9a099cb 100644 --- a/src/com/android/browser/SuggestionsAdapter.java +++ b/src/com/android/browser/SuggestionsAdapter.java @@ -16,6 +16,7 @@ package com.android.browser; +import com.android.browser.provider.BrowserProvider2; import com.android.browser.search.SearchEngine; import android.app.SearchManager; @@ -472,6 +473,8 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable, Uri.Builder ub = BrowserContract.Combined.CONTENT_URI.buildUpon(); ub.appendQueryParameter(BrowserContract.PARAM_LIMIT, Integer.toString(Math.max(mLinesLandscape, mLinesPortrait))); + ub.appendQueryParameter(BrowserProvider2.PARAM_GROUP_BY, + BrowserContract.Combined.URL); mCursor = mContext.getContentResolver().query(ub.build(), COMBINED_PROJECTION, selection, |