commit | 7f2202b0bd6eb66e64d1bbed91c39181b754e90f | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Mon Sep 12 17:05:18 2011 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Mon Sep 12 18:20:56 2011 -0700 |
tree | 078f02b9a8a41d17f9da86a9cfa6c3c2df6c5e3c | |
parent | 8a6d732360c9dbcdf1d2b4da93d150f16af8507b [diff] |
Handle data changed during FlingRunnable. Bug: 5297171 Change-Id: I733ed978bb1d237c992f5d003b212baeac102a3d
diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java index d7fb7a0..353d83c 100644 --- a/core/java/android/widget/AbsListView.java +++ b/core/java/android/widget/AbsListView.java
@@ -3774,6 +3774,10 @@ } // Fall through case TOUCH_MODE_FLING: { + if (mDataChanged) { + layoutChildren(); + } + if (mItemCount == 0 || getChildCount() == 0) { endFling(); return;