summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-07-22 11:22:07 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-07-22 11:22:07 -0700
commitb551fb872be9b758c7793f56398d25a74d4a404c (patch)
tree32f26972843a22f910d068f12d558457bac95d34 /core
parent5e21a11f00e3e65f6d7681e2519677329f0a92b2 (diff)
parent470c565b6adf4847db7e10611b18f67bf9111768 (diff)
downloadframeworks_base-b551fb872be9b758c7793f56398d25a74d4a404c.zip
frameworks_base-b551fb872be9b758c7793f56398d25a74d4a404c.tar.gz
frameworks_base-b551fb872be9b758c7793f56398d25a74d4a404c.tar.bz2
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.
Diffstat (limited to 'core')
-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();
}
}