Loading core/java/android/app/SearchDialog.java +8 −1 Original line number Diff line number Diff line Loading @@ -577,6 +577,13 @@ 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. */ Loading core/java/android/app/SuggestionsAdapter.java +2 −0 Original line number Diff line number Diff line Loading @@ -189,6 +189,8 @@ class SuggestionsAdapter extends ResourceCursorAdapter { if (DBG) Log.d(LOG_TAG, "notifyDataSetChanged"); super.notifyDataSetChanged(); mSearchDialog.onDataSetChanged(); updateSpinnerState(getCursor()); } Loading Loading
core/java/android/app/SearchDialog.java +8 −1 Original line number Diff line number Diff line Loading @@ -577,6 +577,13 @@ 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. */ Loading
core/java/android/app/SuggestionsAdapter.java +2 −0 Original line number Diff line number Diff line Loading @@ -189,6 +189,8 @@ class SuggestionsAdapter extends ResourceCursorAdapter { if (DBG) Log.d(LOG_TAG, "notifyDataSetChanged"); super.notifyDataSetChanged(); mSearchDialog.onDataSetChanged(); updateSpinnerState(getCursor()); } Loading