summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorMike LeBeau <mlebeau@android.com>2009-07-22 11:17:48 -0700
committerMike LeBeau <mlebeau@android.com>2009-07-22 11:17:48 -0700
commit470c565b6adf4847db7e10611b18f67bf9111768 (patch)
tree3b884a7ab536381431a5332bd907d0cde71a4ca0 /core/java
parenteb1eab1214dbe0b25355e7bde4279fca804af9f7 (diff)
downloadframeworks_base-470c565b6adf4847db7e10611b18f67bf9111768.zip
frameworks_base-470c565b6adf4847db7e10611b18f67bf9111768.tar.gz
frameworks_base-470c565b6adf4847db7e10611b18f67bf9111768.tar.bz2
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.
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/widget/AutoCompleteTextView.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/java/android/widget/AutoCompleteTextView.java b/core/java/android/widget/AutoCompleteTextView.java
index 4bc00de..47798a4 100644
--- a/core/java/android/widget/AutoCompleteTextView.java
+++ b/core/java/android/widget/AutoCompleteTextView.java
@@ -205,11 +205,10 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
* Private hook into the on click event, dispatched from {@link PassThroughClickListener}
*/
private void onClickImpl() {
- // if drop down should always visible, bring it back in front of the soft
- // keyboard when the user touches the text field
- if (mDropDownAlwaysVisible
- && mPopup.isShowing()
- && mPopup.getInputMethodMode() == PopupWindow.INPUT_METHOD_NOT_NEEDED) {
+ // If the dropdown is showing, bring it back in front of the soft
+ // keyboard when the user touches the text field.
+ if (mPopup.isShowing() &&
+ mPopup.getInputMethodMode() == PopupWindow.INPUT_METHOD_NOT_NEEDED) {
ensureImeVisible();
}
}