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

Commit 7f2202b0 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Handle data changed during FlingRunnable.

Bug: 5297171
Change-Id: I733ed978bb1d237c992f5d003b212baeac102a3d
parent 8a6d7323
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3774,6 +3774,10 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                }
                // Fall through
            case TOUCH_MODE_FLING: {
                if (mDataChanged) {
                    layoutChildren();
                }

                if (mItemCount == 0 || getChildCount() == 0) {
                    endFling();
                    return;