summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/SuggestionsAdapter.java
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2011-02-23 12:01:13 +0000
committerNarayan Kamath <narayan@google.com>2011-03-02 18:10:21 +0000
commit80aad8d851601d39f73214c198111ca49e25f654 (patch)
treef0f859bcd85f8f203243404165034038637e75a5 /src/com/android/browser/SuggestionsAdapter.java
parent2eb1190bdda1d2d53c049aa3f5000af6a150e2ca (diff)
downloadpackages_apps_Browser-80aad8d851601d39f73214c198111ca49e25f654.zip
packages_apps_Browser-80aad8d851601d39f73214c198111ca49e25f654.tar.gz
packages_apps_Browser-80aad8d851601d39f73214c198111ca49e25f654.tar.bz2
Add autocomplete to the browser UrlInputView.
Code and tests based on the google search app. A lot less code would be duplicated if we could somehow override AutoCompleteTextView but that is made impossible by it calling a bunch of stuff in its constructor. To do so would require changes to the existing API. I've verified that the unit test passes, but other browser tests appear to fail - even on a clean branch with none of my changes. Also fixes a minor bug in SearchEngines.getSearchableInfo( ). Change-Id: Ic61bc6b8fa27cd210a45dc181ebf15accf503244
Diffstat (limited to 'src/com/android/browser/SuggestionsAdapter.java')
-rw-r--r--src/com/android/browser/SuggestionsAdapter.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/browser/SuggestionsAdapter.java b/src/com/android/browser/SuggestionsAdapter.java
index 6e55539..3636bbf 100644
--- a/src/com/android/browser/SuggestionsAdapter.java
+++ b/src/com/android/browser/SuggestionsAdapter.java
@@ -392,11 +392,11 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable,
/**
* data object to hold suggestion values
*/
- class SuggestItem {
- String title;
- String url;
- int type;
- String extra;
+ public class SuggestItem {
+ public String title;
+ public String url;
+ public int type;
+ public String extra;
public SuggestItem(String text, String u, int t) {
title = text;