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

Commit 5703bbfa authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "Fix a bug in ListView where touch scrolling could skip a data set change" into jb-dev

parents 56ce3c00 6f663c1a
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -3179,6 +3179,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                mActivePointerId = ev.getPointerId(pointerIndex);
                mActivePointerId = ev.getPointerId(pointerIndex);
            }
            }
            final int y = (int) ev.getY(pointerIndex);
            final int y = (int) ev.getY(pointerIndex);

            if (mDataChanged) {
                // Re-sync everything if data has been changed
                // since the scroll operation can query the adapter.
                layoutChildren();
            }

            switch (mTouchMode) {
            switch (mTouchMode) {
            case TOUCH_MODE_DOWN:
            case TOUCH_MODE_DOWN:
            case TOUCH_MODE_TAP:
            case TOUCH_MODE_TAP: