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
diff --git a/src/com/android/browser/SuggestionsAdapter.java b/src/com/android/browser/SuggestionsAdapter.java
index 3c1a689..6e55539 100644
--- a/src/com/android/browser/SuggestionsAdapter.java
+++ b/src/com/android/browser/SuggestionsAdapter.java
@@ -78,8 +78,6 @@
public void onSelect(String txt, int type, String extraData);
- public void onFilterComplete(int count);
-
}
public SuggestionsAdapter(Context ctx, CompletionListener listener) {
@@ -240,7 +238,6 @@
mSuggestResults = items;
mMixedResults = buildSuggestionResults();
notifyDataSetChanged();
- mListener.onFilterComplete(mMixedResults.getLineCount());
}
}
@@ -334,9 +331,8 @@
protected void publishResults(CharSequence constraint, FilterResults fresults) {
if (fresults.values instanceof SuggestionResults) {
mMixedResults = (SuggestionResults) fresults.values;
- mListener.onFilterComplete(fresults.count);
+ notifyDataSetChanged();
}
- notifyDataSetChanged();
}
}