Merge change 8210 into donut
* changes: Always call ensureImeVisible when the text field is clicked. We want this regardless of whether dropDownAlwaysVisible is true or not, as long as the popup is showing and is potentially obscuring the IME.
This commit is contained in:
@ -205,11 +205,10 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
|
|||||||
* Private hook into the on click event, dispatched from {@link PassThroughClickListener}
|
* Private hook into the on click event, dispatched from {@link PassThroughClickListener}
|
||||||
*/
|
*/
|
||||||
private void onClickImpl() {
|
private void onClickImpl() {
|
||||||
// if drop down should always visible, bring it back in front of the soft
|
// If the dropdown is showing, bring it back in front of the soft
|
||||||
// keyboard when the user touches the text field
|
// keyboard when the user touches the text field.
|
||||||
if (mDropDownAlwaysVisible
|
if (mPopup.isShowing() &&
|
||||||
&& mPopup.isShowing()
|
mPopup.getInputMethodMode() == PopupWindow.INPUT_METHOD_NOT_NEEDED) {
|
||||||
&& mPopup.getInputMethodMode() == PopupWindow.INPUT_METHOD_NOT_NEEDED) {
|
|
||||||
ensureImeVisible();
|
ensureImeVisible();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user