do not reset scroll X and Y at setViews
This commit is contained in:
parent
e18248fc1b
commit
fff5bcf603
2 changed files with 1 additions and 3 deletions
|
@ -7,7 +7,7 @@ buildscript {
|
|||
propMinSdkVersion = 16
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '4.1.1'
|
||||
propVersionName = '4.1.2'
|
||||
kotlin_version = '1.2.41'
|
||||
support_libs = '27.1.1'
|
||||
}
|
||||
|
|
|
@ -53,8 +53,6 @@ class FastScroller : FrameLayout {
|
|||
constructor(context: Context, attrs: AttributeSet, defStyle: Int) : super(context, attrs, defStyle)
|
||||
|
||||
fun setViews(recyclerView: RecyclerView, swipeRefreshLayout: SwipeRefreshLayout? = null, callback: ((Int) -> Unit)? = null) {
|
||||
currScrollX = 0
|
||||
currScrollY = 0
|
||||
this.recyclerView = recyclerView
|
||||
this.swipeRefreshLayout = swipeRefreshLayout
|
||||
tinyMargin = context.resources.getDimension(R.dimen.tiny_margin)
|
||||
|
|
Loading…
Reference in a new issue