Merge change If3c7d429 into eclair-mr2

* changes:
  Report SCROLL_STATE_IDLE after the user finishes a scroll (not a fling.)
This commit is contained in:
Android (Google) Code Review
2009-12-04 15:50:43 -08:00

View File

@ -2109,6 +2109,9 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
} }
reportScrollStateChange(OnScrollListener.SCROLL_STATE_FLING); reportScrollStateChange(OnScrollListener.SCROLL_STATE_FLING);
mFlingRunnable.start(-initialVelocity); mFlingRunnable.start(-initialVelocity);
} else {
mTouchMode = TOUCH_MODE_REST;
reportScrollStateChange(OnScrollListener.SCROLL_STATE_IDLE);
} }
} }
} else { } else {