Loading core/java/android/app/SearchDialog.java +2 −0 Original line number Diff line number Diff line Loading @@ -1042,6 +1042,8 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS mSearchAutoComplete.setSelection(selPoint); mSearchAutoComplete.setListSelection(0); mSearchAutoComplete.clearListSelection(); mSearchAutoComplete.ensureImeVisible(); return true; } Loading core/java/android/widget/AutoCompleteTextView.java +12 −3 Original line number Diff line number Diff line Loading @@ -210,8 +210,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe if (mDropDownAlwaysVisible && mPopup.isShowing() && mPopup.getInputMethodMode() == PopupWindow.INPUT_METHOD_NOT_NEEDED) { mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED); showDropDown(); ensureImeVisible(); } } Loading Loading @@ -1078,6 +1077,16 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe post(mShowDropDownRunnable); } /** * Ensures that the drop down is not obscuring the IME. * * @hide internal used only here and SearchDialog */ public void ensureImeVisible() { mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED); showDropDown(); } /** * <p>Displays the drop down on screen.</p> */ Loading Loading
core/java/android/app/SearchDialog.java +2 −0 Original line number Diff line number Diff line Loading @@ -1042,6 +1042,8 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS mSearchAutoComplete.setSelection(selPoint); mSearchAutoComplete.setListSelection(0); mSearchAutoComplete.clearListSelection(); mSearchAutoComplete.ensureImeVisible(); return true; } Loading
core/java/android/widget/AutoCompleteTextView.java +12 −3 Original line number Diff line number Diff line Loading @@ -210,8 +210,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe if (mDropDownAlwaysVisible && mPopup.isShowing() && mPopup.getInputMethodMode() == PopupWindow.INPUT_METHOD_NOT_NEEDED) { mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED); showDropDown(); ensureImeVisible(); } } Loading Loading @@ -1078,6 +1077,16 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe post(mShowDropDownRunnable); } /** * Ensures that the drop down is not obscuring the IME. * * @hide internal used only here and SearchDialog */ public void ensureImeVisible() { mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED); showDropDown(); } /** * <p>Displays the drop down on screen.</p> */ Loading