OSDN Git Service

Report SCROLL_STATE_IDLE after the user finishes a scroll (not a fling.)
authorRomain Guy <romainguy@android.com>
Fri, 4 Dec 2009 23:38:22 +0000 (15:38 -0800)
committerRomain Guy <romainguy@android.com>
Fri, 4 Dec 2009 23:38:22 +0000 (15:38 -0800)
commitf3c7d4294dee6a271e417d81bdd74c87e57ce5b3
tree922d515ffdc62b7a9a7159d17053c0058c141028
parent8280c2b15f6875b2d387c05df23d264864eb9cd5
Report SCROLL_STATE_IDLE after the user finishes a scroll (not a fling.)

When the user lifts her finger up, AbsListView computes the fling velocity
and report a SCROLL_STATE_FLING if the velocity is high enough. However,
when the fling is not initiated because the velocity is too low (case of
a normal scroll), the idle state was not set nor reported.
core/java/android/widget/AbsListView.java