From 80aad8d851601d39f73214c198111ca49e25f654 Mon Sep 17 00:00:00 2001 From: Narayan Kamath Date: Wed, 23 Feb 2011 12:01:13 +0000 Subject: 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 --- src/com/android/browser/SuggestionsAdapter.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (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 6e5553969..3636bbf09 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; -- cgit v1.2.3