Merge "Handle data changed during FlingRunnable."

This commit is contained in:
Jeff Sharkey
2011-09-12 18:28:15 -07:00
committed by Android (Google) Code Review

View File

@@ -3774,6 +3774,10 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
} }
// Fall through // Fall through
case TOUCH_MODE_FLING: { case TOUCH_MODE_FLING: {
if (mDataChanged) {
layoutChildren();
}
if (mItemCount == 0 || getChildCount() == 0) { if (mItemCount == 0 || getChildCount() == 0) {
endFling(); endFling();
return; return;