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

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

Fixes #1882836.

Prevents the gestures window from leaking. This change does exactly what was
done for the filter popup window: the popup is dismissed in onSaveInstanceState()
as it is the only place that is executed early enough to avoid the dreaded
window leak error.
parent 3d3e307a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1056,11 +1056,12 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
    public Parcelable onSaveInstanceState() {
        /*
         * This doesn't really make sense as the place to dismiss the
         * popup, but there don't seem to be any other useful hooks
         * popups, but there don't seem to be any other useful hooks
         * that happen early enough to keep from getting complaints
         * about having leaked the window.
         */
        dismissPopup();
        dismissGesturesPopup();

        Parcelable superState = super.onSaveInstanceState();