summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/SuggestionsAdapter.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2010-11-23 12:58:13 -0800
committerJohn Reck <jreck@google.com>2010-11-23 12:58:13 -0800
commit04e7744fe76b5441a66db1d7909f8b3a5a6a83d3 (patch)
tree5327954efb507d5fbab98c1ba0dcdbf8a783b771 /src/com/android/browser/SuggestionsAdapter.java
parenta49b829e91ea1290d9e1cf326417fdbf669f9d3a (diff)
downloadpackages_apps_Browser-04e7744fe76b5441a66db1d7909f8b3a5a6a83d3.zip
packages_apps_Browser-04e7744fe76b5441a66db1d7909f8b3a5a6a83d3.tar.gz
packages_apps_Browser-04e7744fe76b5441a66db1d7909f8b3a5a6a83d3.tar.bz2
Fixes the selection for search history
Bug: 3224800 The selection in the SuggestionsAdapter was wrong causing previous searches to only appear when the entered text exactly matched the previous search. Change-Id: I4fb2c2ede8ee5f8053e582e33a9fe31665364eca
Diffstat (limited to 'src/com/android/browser/SuggestionsAdapter.java')
-rw-r--r--src/com/android/browser/SuggestionsAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/SuggestionsAdapter.java b/src/com/android/browser/SuggestionsAdapter.java
index d3609b2..ff804c1 100644
--- a/src/com/android/browser/SuggestionsAdapter.java
+++ b/src/com/android/browser/SuggestionsAdapter.java
@@ -513,7 +513,7 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable, OnCli
mCursor.close();
}
String like = constraint + "%";
- String[] args = new String[] {constraint.toString()};
+ String[] args = new String[] {like};
String selection = BrowserContract.Searches.SEARCH + " LIKE ?";
Uri.Builder ub = BrowserContract.Searches.CONTENT_URI.buildUpon();
ub.appendQueryParameter(BrowserContract.PARAM_LIMIT,