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

Commit 670dd819 authored by Mark Wagner's avatar Mark Wagner
Browse files

bugfix endfling case (bug 2300534)

When the menu comes up over the activity we call removeCallbacks(mFlingRunnable);
The effect of that is that our mTouchMode variable is left dangling in the fling
state.  This change calls endFling() after removeCallbacks.  In the specific bug
being addressed we depend on reportScrollStateChange() because we avoid doing
requeries while scrolling.
parent 5a2ade33
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1567,7 +1567,12 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te

        if (!hasWindowFocus) {
            setChildrenDrawingCacheEnabled(false);
            if (mFlingRunnable != null) {
                removeCallbacks(mFlingRunnable);
                // let the fling runnable report it's new state which
                // should be idle
                mFlingRunnable.endFling();
            }
            // Always hide the type filter
            dismissPopup();