|
|
@ -152,12 +152,10 @@ class FastScroller : LinearLayout { |
|
|
|
|
|
|
|
|
|
|
|
fun attachRecyclerView(recyclerView: RecyclerView) { |
|
|
|
fun attachRecyclerView(recyclerView: RecyclerView) { |
|
|
|
mRecyclerView = recyclerView |
|
|
|
mRecyclerView = recyclerView |
|
|
|
if (mRecyclerView != null) { |
|
|
|
mRecyclerView!!.addOnScrollListener(mScrollListener) |
|
|
|
mRecyclerView!!.addOnScrollListener(mScrollListener) |
|
|
|
post { |
|
|
|
post { |
|
|
|
// set initial positions for bubble and handle |
|
|
|
// set initial positions for bubble and handle |
|
|
|
setViewPositions(getScrollProportion(mRecyclerView)) |
|
|
|
setViewPositions(getScrollProportion(mRecyclerView)) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|