From a005cd7e4091513b189a6573b4fa96d762399c7e Mon Sep 17 00:00:00 2001 From: John Reck Date: Tue, 1 Feb 2011 11:46:53 -0800 Subject: Remove explicit calls to onFilterComplete Bug: 3410428 SuggestionsAdapter was explicitly calling onFilterComplete when it shouldn't. This seems to have been a workaround for a fixed bug. Change-Id: Ic0fad44e60ad1c32708d31879a46c3e9c6ca906c --- src/com/android/browser/SuggestionsAdapter.java | 6 +----- 1 file changed, 1 insertion(+), 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 3c1a68948..6e5553969 100644 --- a/src/com/android/browser/SuggestionsAdapter.java +++ b/src/com/android/browser/SuggestionsAdapter.java @@ -78,8 +78,6 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable, public void onSelect(String txt, int type, String extraData); - public void onFilterComplete(int count); - } public SuggestionsAdapter(Context ctx, CompletionListener listener) { @@ -240,7 +238,6 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable, mSuggestResults = items; mMixedResults = buildSuggestionResults(); notifyDataSetChanged(); - mListener.onFilterComplete(mMixedResults.getLineCount()); } } @@ -334,9 +331,8 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable, protected void publishResults(CharSequence constraint, FilterResults fresults) { if (fresults.values instanceof SuggestionResults) { mMixedResults = (SuggestionResults) fresults.values; - mListener.onFilterComplete(fresults.count); + notifyDataSetChanged(); } - notifyDataSetChanged(); } } -- cgit v1.2.3