Merge change 7889 into donut
* changes: Ignore unneeded soft keyboard in ACTV height calc
This commit is contained in:
@@ -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
|
// Max height available on the screen for a popup.
|
||||||
// the dropDownAlwaysVisible attribute, and the input method is not currently required,
|
boolean ignoreBottomDecorations =
|
||||||
// we then we ask for the height ignoring any bottom decorations like the input method.
|
|
||||||
// Otherwise we respect the input method.
|
|
||||||
boolean ignoreBottomDecorations = mDropDownAlwaysVisible &&
|
|
||||||
mPopup.getInputMethodMode() == PopupWindow.INPUT_METHOD_NOT_NEEDED;
|
mPopup.getInputMethodMode() == PopupWindow.INPUT_METHOD_NOT_NEEDED;
|
||||||
final int maxHeight = mPopup.getMaxAvailableHeight(
|
final int maxHeight = mPopup.getMaxAvailableHeight(
|
||||||
getDropDownAnchorView(), mDropDownVerticalOffset, ignoreBottomDecorations);
|
getDropDownAnchorView(), mDropDownVerticalOffset, ignoreBottomDecorations);
|
||||||
|
|||||||
Reference in New Issue
Block a user