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

Commit 6f5e934b authored by Adam Powell's avatar Adam Powell
Browse files

Fix bug 3391818 - Keyboard covers the "Show in chat list" selection in

talk > Friend Info

Make spinner dropdowns cover the IME if present without being touched
first.

Change-Id: Ie47df1ad684649de73b102e2ecf5528a35301d93
parent 315f3865
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -190,6 +190,7 @@ public class ListPopupWindow {
    public ListPopupWindow(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        mContext = context;
        mPopup = new PopupWindow(context, attrs, defStyleAttr, defStyleRes);
        mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);
    }

    /**
@@ -576,7 +577,6 @@ public class ListPopupWindow {
            }

            mPopup.setWindowLayoutMode(widthSpec, heightSpec);
            mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);
            mPopup.setClipToScreenEnabled(true);
            
            // use outside touchable to dismiss drop down when touching outside of it, so
+1 −0
Original line number Diff line number Diff line
@@ -665,6 +665,7 @@ public class Spinner extends AbsSpinner implements OnClickListener {
        @Override
        public void show() {
            setWidth(Spinner.this.getWidth());
            setInputMethodMode(ListPopupWindow.INPUT_METHOD_NOT_NEEDED);
            super.show();
            getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
            setSelection(Spinner.this.getSelectedItemPosition());