Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 875fca2e authored by Bryan Mawhinney's avatar Bryan Mawhinney
Browse files

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
parent ccd064d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1325,7 +1325,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
        final int maxHeight = mPopup.getMaxAvailableHeight(
        final int maxHeight = mPopup.getMaxAvailableHeight(
                getDropDownAnchorView(), mDropDownVerticalOffset, ignoreBottomDecorations);
                getDropDownAnchorView(), mDropDownVerticalOffset, ignoreBottomDecorations);


        if (mDropDownAlwaysVisible) {
        if (mDropDownAlwaysVisible || mDropDownHeight == ViewGroup.LayoutParams.FILL_PARENT) {
            // getMaxAvailableHeight() subtracts the padding, so we put it back,
            // getMaxAvailableHeight() subtracts the padding, so we put it back,
            // to get the available height for the whole window
            // to get the available height for the whole window
            int padding = 0;
            int padding = 0;