do not reset scroll X and Y at setViews

This commit is contained in:
tibbi 2018-05-25 10:33:21 +02:00
parent e18248fc1b
commit fff5bcf603
2 changed files with 1 additions and 3 deletions

View file

@ -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'
}

View file

@ -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)