From da465d871d7d980ea80aab5ec64e6fbca851c357 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 30 Mar 2021 14:03:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=83=E7=94=A8=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ui/widget/recycler/scroller/FastScrollRecyclerView.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/io/legado/app/ui/widget/recycler/scroller/FastScrollRecyclerView.kt b/app/src/main/java/io/legado/app/ui/widget/recycler/scroller/FastScrollRecyclerView.kt index 35623f5e2..1c82425b0 100644 --- a/app/src/main/java/io/legado/app/ui/widget/recycler/scroller/FastScrollRecyclerView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/recycler/scroller/FastScrollRecyclerView.kt @@ -151,6 +151,7 @@ class FastScrollRecyclerView : RecyclerView { mFastScroller.attachRecyclerView(this) val parent = parent if (parent is ViewGroup) { + parent.removeView(mFastScroller) parent.addView(mFastScroller) mFastScroller.setLayoutParams(parent) }