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) }