allow setting scroll X of fastscrollers too
This commit is contained in:
parent
9fd73fa2c9
commit
0b4e5cb783
3 changed files with 10 additions and 3 deletions
|
@ -7,7 +7,7 @@ buildscript {
|
|||
propMinSdkVersion = 16
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '4.3.0'
|
||||
propVersionName = '4.3.1'
|
||||
kotlin_version = '1.2.50'
|
||||
support_libs = '27.1.1'
|
||||
}
|
||||
|
|
|
@ -141,7 +141,7 @@ class FilePickerDialog(val activity: BaseSimpleActivity,
|
|||
|
||||
layoutManager.onRestoreInstanceState(mScrollStates[currPath.trimEnd('/')])
|
||||
filepicker_list.onGlobalLayout {
|
||||
filepicker_fastscroller.setScrollTo(filepicker_list.computeVerticalScrollOffset())
|
||||
filepicker_fastscroller.setScrollToY(filepicker_list.computeVerticalScrollOffset())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -155,7 +155,14 @@ class FastScroller : FrameLayout {
|
|||
updateHandlePosition()
|
||||
}
|
||||
|
||||
fun setScrollTo(y: Int) {
|
||||
fun setScrollToX(x: Int) {
|
||||
measureRecyclerView()
|
||||
currScrollX = x
|
||||
updateHandlePosition()
|
||||
hideHandle()
|
||||
}
|
||||
|
||||
fun setScrollToY(y: Int) {
|
||||
measureRecyclerView()
|
||||
currScrollY = y
|
||||
updateHandlePosition()
|
||||
|
|
Loading…
Reference in a new issue