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

Commit 17c29a3b authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

am 34dd5824: Merge "Only resize list popup if it\'s still attached to a window" into mnc-dev

* commit '34dd5824':
  Only resize list popup if it's still attached to a window
parents 2b48e86f 34dd5824
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1791,8 +1791,9 @@ public class ListPopupWindow {

    private class ResizePopupRunnable implements Runnable {
        public void run() {
            if (mDropDownList != null && mDropDownList.getCount() > mDropDownList.getChildCount() &&
                    mDropDownList.getChildCount() <= mListItemExpandMaximum) {
            if (mDropDownList != null && mDropDownList.isAttachedToWindow()
                    && mDropDownList.getCount() > mDropDownList.getChildCount()
                    && mDropDownList.getChildCount() <= mListItemExpandMaximum) {
                mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NOT_NEEDED);
                show();
            }