diff --git a/app/src/main/java/org/koitharu/kotatsu/utils/ext/ViewExt.kt b/app/src/main/java/org/koitharu/kotatsu/utils/ext/ViewExt.kt index 12b2abe7b..29d0953c7 100644 --- a/app/src/main/java/org/koitharu/kotatsu/utils/ext/ViewExt.kt +++ b/app/src/main/java/org/koitharu/kotatsu/utils/ext/ViewExt.kt @@ -127,7 +127,8 @@ fun RecyclerView.ViewHolder.getItem(clazz: Class): T? { fun Slider.setValueRounded(newValue: Float) { val step = stepSize - value = (newValue / step).roundToInt() * step + val roundedValue = (newValue / step).roundToInt() * step + value = roundedValue.coerceIn(valueFrom, valueTo) } val RecyclerView.isScrolledToTop: Boolean