diff options
Diffstat (limited to 'core/java/android/app/SearchDialog.java')
| -rw-r--r-- | core/java/android/app/SearchDialog.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/app/SearchDialog.java b/core/java/android/app/SearchDialog.java index c2afd070a209..c951ce9a0351 100644 --- a/core/java/android/app/SearchDialog.java +++ b/core/java/android/app/SearchDialog.java @@ -576,7 +576,14 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS } mVoiceButton.setVisibility(visibility); } - + + /** Called by SuggestionsAdapter when the cursor contents changed. */ + void onDataSetChanged() { + if (mSearchAutoComplete != null && mSuggestionsAdapter != null) { + mSearchAutoComplete.onFilterComplete(mSuggestionsAdapter.getCount()); + } + } + /** * Hack to determine whether this is the browser, so we can adjust the UI. */ |
