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

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

Do not reshow the filter popup after hiding it.

This was causing the popup to show after moving a list out of the screen in
the new music app.
parent 6a31dfa9
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -450,6 +450,10 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
    
    final boolean[] mIsScrap = new boolean[1];
    
    // True when the popup should be hidden because of a call to
    // dispatchDisplayHint()
    private boolean mPopupHidden;

    /**
     * Interface definition for a callback to be invoked when the list or grid
     * has been scrolled.
@@ -3024,6 +3028,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                }
                break;
        }
        mPopupHidden = hint == INVISIBLE;
    }

    /**
@@ -3033,6 +3038,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
        if (mPopup != null) {
            mPopup.dismiss();
        }
        mPopupHidden = false;
    }

    /**
@@ -3309,7 +3315,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
    public void onGlobalLayout() {
        if (isShown()) {
            // Show the popup if we are filtered
            if (mFiltered && mPopup != null && !mPopup.isShowing()) {
            if (mFiltered && mPopup != null && !mPopup.isShowing() && !mPopupHidden) {
                showPopup();
            }
        } else {