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

Commit c51ef970 authored by Romain Guy's avatar Romain Guy
Browse files

Fixes #1873537.

Only update the popup window when it is shown. This avoids throwing an NPE in PopupWindow.
A PopupWindow is only aware of its content view after being shown.
parent d9cc7659
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1570,7 +1570,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
        if (mInstallGesturesOverlay) {
            installGesturesOverlay();
            positionGesturesPopup();
        } else if (mGesturesPopup != null) {
        } else if (mGesturesPopup != null && mGesturesPopup.isShowing()) {
            mGesturesPopup.update(w, h);
        }
    }