From 05c37da66797f7df620bcc505b8cbc25eadba368 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Tue, 18 Feb 2025 20:14:52 +0200 Subject: [PATCH] Fix build --- .../kotatsu/core/ui/list/fastscroll/FastScroller.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/core/ui/list/fastscroll/FastScroller.kt b/app/src/main/kotlin/org/koitharu/kotatsu/core/ui/list/fastscroll/FastScroller.kt index 7ffd4571f..befdc591b 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/core/ui/list/fastscroll/FastScroller.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/core/ui/list/fastscroll/FastScroller.kt @@ -11,7 +11,9 @@ import android.view.LayoutInflater import android.view.MotionEvent import android.view.View import android.view.ViewGroup -import android.widget.* +import android.widget.FrameLayout +import android.widget.LinearLayout +import android.widget.RelativeLayout import androidx.annotation.AttrRes import androidx.annotation.ColorInt import androidx.annotation.DimenRes @@ -229,7 +231,8 @@ class FastScroller @JvmOverloads constructor( * * @param params The [ViewGroup.LayoutParams] for this view, cannot be null */ - override fun setLayoutParams(params: LayoutParams) { + @Suppress("RemoveRedundantQualifierName") + override fun setLayoutParams(params: ViewGroup.LayoutParams) { params.width = LayoutParams.WRAP_CONTENT super.setLayoutParams(params) }