diff options
| author | Bryan Mawhinney <bryanmawhinney@google.com> | 2009-09-17 13:54:23 +0100 |
|---|---|---|
| committer | Bryan Mawhinney <bryanmawhinney@google.com> | 2009-09-17 13:54:23 +0100 |
| commit | 875fca2e18296ffd8bbe9ef4e1769d24a59f3584 (patch) | |
| tree | 614b5b636c2fa6a547c11e1917e0475311038d1f /core/java/android/widget/AutoCompleteTextView.java | |
| parent | ccd064d4117bef3fc2a0914f03ccc84a1b50aaa1 (diff) | |
Make ACTV use all available space if height is FILL_PARENT.
This prevents the drop down from resizing when the keyboard is shown / hidden, and thus fixes the issue where the 4th item in the list could not be selected when in landscape mode.
Bug: 2096394
Change-Id: Id0e687c897a724379073dcfa82de7ce89ae12035
Diffstat (limited to 'core/java/android/widget/AutoCompleteTextView.java')
| -rw-r--r-- | core/java/android/widget/AutoCompleteTextView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/AutoCompleteTextView.java b/core/java/android/widget/AutoCompleteTextView.java index 4566c4cfa1ae..953dd92dae41 100644 --- a/core/java/android/widget/AutoCompleteTextView.java +++ b/core/java/android/widget/AutoCompleteTextView.java @@ -1325,7 +1325,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe final int maxHeight = mPopup.getMaxAvailableHeight( getDropDownAnchorView(), mDropDownVerticalOffset, ignoreBottomDecorations); - if (mDropDownAlwaysVisible) { + if (mDropDownAlwaysVisible || mDropDownHeight == ViewGroup.LayoutParams.FILL_PARENT) { // getMaxAvailableHeight() subtracts the padding, so we put it back, // to get the available height for the whole window int padding = 0; |
