summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/SuggestionsAdapter.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-02-01 11:46:53 -0800
committerJohn Reck <jreck@google.com>2011-02-01 11:50:40 -0800
commita005cd7e4091513b189a6573b4fa96d762399c7e (patch)
tree6c2dea4e84fe1a3a2ea0f23b0ef1e3d611639c47 /src/com/android/browser/SuggestionsAdapter.java
parent20b6f1f9fb045605cb7a91dec5df0775be20c50c (diff)
downloadpackages_apps_Browser-a005cd7e4091513b189a6573b4fa96d762399c7e.zip
packages_apps_Browser-a005cd7e4091513b189a6573b4fa96d762399c7e.tar.gz
packages_apps_Browser-a005cd7e4091513b189a6573b4fa96d762399c7e.tar.bz2
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
Diffstat (limited to 'src/com/android/browser/SuggestionsAdapter.java')
-rw-r--r--src/com/android/browser/SuggestionsAdapter.java6
1 files changed, 1 insertions, 5 deletions
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 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();
}
}