pull/32/head
kunfei 5 years ago
parent 86fb6260a1
commit 63b74cbc2b
  1. 2
      app/src/main/java/io/legado/app/ui/widget/recycler/scroller/FastScroller.kt

@ -100,7 +100,7 @@ class FastScroller : LinearLayout {
} }
fun setLayoutParams(viewGroup: ViewGroup) { fun setLayoutParams(viewGroup: ViewGroup) {
@IdRes val recyclerViewId = if (mRecyclerView != null) mRecyclerView!!.id else View.NO_ID @IdRes val recyclerViewId = mRecyclerView?.id ?: View.NO_ID
val marginTop = resources.getDimensionPixelSize(R.dimen.fastscroll_scrollbar_margin_top) val marginTop = resources.getDimensionPixelSize(R.dimen.fastscroll_scrollbar_margin_top)
val marginBottom = resources.getDimensionPixelSize(R.dimen.fastscroll_scrollbar_margin_bottom) val marginBottom = resources.getDimensionPixelSize(R.dimen.fastscroll_scrollbar_margin_bottom)
if (recyclerViewId == View.NO_ID) { if (recyclerViewId == View.NO_ID) {

Loading…
Cancel
Save