[Android] Mitigate the FastScroller not scrolling all the way down
Nicolas Pomepuy
git at videolan.org
Tue Aug 27 13:01:57 CEST 2019
vlc-android | branch: 3.2.x | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Aug 26 13:20:26 2019 +0200| [ccf6c4d65b141821ba2646bade59196e933d9ba8] | committer: Nicolas Pomepuy
Mitigate the FastScroller not scrolling all the way down
Fixes #958
(cherry picked from commit 8289b43f40f50ac6250396442b0ad033dd613ac1)
> https://code.videolan.org/videolan/vlc-android/commit/ccf6c4d65b141821ba2646bade59196e933d9ba8
---
vlc-android/src/org/videolan/vlc/gui/view/FastScroller.kt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/view/FastScroller.kt b/vlc-android/src/org/videolan/vlc/gui/view/FastScroller.kt
index bdebc55d7..335d51c9e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/view/FastScroller.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/view/FastScroller.kt
@@ -261,6 +261,9 @@ class FastScroller : LinearLayout, CoroutineScope, Observer<HeadersIndex> {
fastScrolling = false
handler.sendEmptyMessageDelayed(HIDE_HANDLE, HANDLE_HIDE_DELAY.toLong())
handler.sendEmptyMessageDelayed(HIDE_SCROLLER, SCROLLER_HIDE_DELAY.toLong())
+ if (event.y / currentHeight.toFloat() > 0.99f) {
+ recyclerView.smoothScrollToPosition(itemCount)
+ }
return true
}
return super.onTouchEvent(event)
More information about the Android
mailing list