diff --git a/build.gradle b/build.gradle index 2451a8784..15f37263e 100644 --- a/build.gradle +++ b/build.gradle @@ -29,5 +29,5 @@ ext { propMinSdkVersion = 16 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 - propVersionName = '2.14.6' + propVersionName = '2.14.7' } diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/views/FastScroller.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/views/FastScroller.kt index 09c97896f..5d8d441fe 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/views/FastScroller.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/views/FastScroller.kt @@ -32,7 +32,7 @@ class FastScroller : LinearLayout { fun setViews(recyclerView: RecyclerView, swipeRefreshLayout: SwipeRefreshLayout? = null) { this.recyclerView = recyclerView this.swipeRefreshLayout = swipeRefreshLayout - handle.background.setColorFilter(context.baseConfig.primaryColor, PorterDuff.Mode.SRC_IN) + updateHandleColor() recyclerView.setOnScrollListener(object : RecyclerView.OnScrollListener() { override fun onScrolled(rv: RecyclerView, dx: Int, dy: Int) { @@ -50,6 +50,10 @@ class FastScroller : LinearLayout { }) } + fun updateHandleColor() { + handle.background.setColorFilter(context.baseConfig.primaryColor, PorterDuff.Mode.SRC_IN) + } + override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) { super.onSizeChanged(w, h, oldw, oldh) currHeight = h