Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fc09972 authored by tibbi's avatar tibbi
Browse files

add an optional parameter at toggling fastscroller bubble displaying

parent f2c44182
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ buildscript {
        propMinSdkVersion = 16
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '3.1.5'
        propVersionName = '3.1.6'
        kotlin_version = '1.2.0'
        support_libs = '27.0.2'
    }
+2 −2
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ 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) {
    fun setViews(recyclerView: RecyclerView, swipeRefreshLayout: SwipeRefreshLayout? = null, allowBubbleDisplay: Boolean = false, callback: ((Int) -> Unit)? = null) {
        this.recyclerView = recyclerView
        this.swipeRefreshLayout = swipeRefreshLayout
        updatePrimaryColor()
@@ -54,7 +54,7 @@ class FastScroller : FrameLayout {
            }
        })

        allowBubbleDisplay = callback != null
        this.allowBubbleDisplay = allowBubbleDisplay
        fastScrollCallback = callback
    }