diff options
| author | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-20 13:31:09 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2009-07-20 13:31:09 -0700 |
| commit | 90ad64b2cb862f3ef6c61eee6a3833efb4337eaf (patch) | |
| tree | cce475da18028b5fe1aaca0aa16d9716472277dc /core/java/android/widget/AutoCompleteTextView.java | |
| parent | 0e9dd3b008536fe8a116eb6821ff84d34dba9f71 (diff) | |
| parent | 51cefb2ef58e18acad800c9aa63c2a7eee4d9731 (diff) | |
am 51cefb2e: Merge change 7889 into donut
Merge commit '51cefb2ef58e18acad800c9aa63c2a7eee4d9731'
* commit '51cefb2ef58e18acad800c9aa63c2a7eee4d9731':
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 ef15e30e4e20..09a547ff5e11 100644 --- a/core/java/android/widget/AutoCompleteTextView.java +++ b/core/java/android/widget/AutoCompleteTextView.java @@ -1279,11 +1279,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); |
