am 5703bbfa: Merge "Fix a bug in ListView where touch scrolling could skip a data set change" into jb-dev
* commit '5703bbfa3d119ee4643983422f9dfeb23b20f446': Fix a bug in ListView where touch scrolling could skip a data set change
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user