diff options
| author | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-20 13:28:10 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-20 13:28:10 -0700 |
| commit | 51cefb2ef58e18acad800c9aa63c2a7eee4d9731 (patch) | |
| tree | 53fc48aac8df914e5b7fb91032260e2b18a2fc5b /core/java/android/widget/AutoCompleteTextView.java | |
| parent | 5f6133a100d4477dfcea919e81ff301f9352cd32 (diff) | |
| parent | 00a5b99229e41c173afd3071f15aaa725f531814 (diff) | |
Merge change 7889 into donut
* changes:
Ignore unneeded soft keyboard in ACTV height calc
Diffstat (limited to 'core/java/android/widget/AutoCompleteTextView.java')
| -rw-r--r-- | core/java/android/widget/AutoCompleteTextView.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/java/android/widget/AutoCompleteTextView.java b/core/java/android/widget/AutoCompleteTextView.java index 0df587f1bda7..4bc00de33e81 100644 --- a/core/java/android/widget/AutoCompleteTextView.java +++ b/core/java/android/widget/AutoCompleteTextView.java @@ -1296,11 +1296,8 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe } } - // Max height available on the screen for a popup. If this AutoCompleteTextView has - // the dropDownAlwaysVisible attribute, and the input method is not currently required, - // we then we ask for the height ignoring any bottom decorations like the input method. - // Otherwise we respect the input method. - boolean ignoreBottomDecorations = mDropDownAlwaysVisible && + // Max height available on the screen for a popup. + boolean ignoreBottomDecorations = mPopup.getInputMethodMode() == PopupWindow.INPUT_METHOD_NOT_NEEDED; final int maxHeight = mPopup.getMaxAvailableHeight( getDropDownAnchorView(), mDropDownVerticalOffset, ignoreBottomDecorations); |
