[Android] Mitigate the FastScroller not scrolling all the way down
Nicolas Pomepuy
git at videolan.org
Mon Aug 26 13:39:08 CEST 2019
vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Aug 26 13:20:26 2019 +0200| [8289b43f40f50ac6250396442b0ad033dd613ac1] | committer: Nicolas Pomepuy
Mitigate the FastScroller not scrolling all the way down
Fixes #958
> https://code.videolan.org/videolan/vlc-android/commit/8289b43f40f50ac6250396442b0ad033dd613ac1
---
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