We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 527717b commit 44b840fCopy full SHA for 44b840f
1 file changed
indicator-fast-scroll/src/main/java/com/reddit/indicatorfastscroll/FastScrollerView.kt
@@ -187,7 +187,7 @@ class FastScrollerView @JvmOverloads constructor(
187
if (!isUpdateItemIndicatorsPosted) {
188
isUpdateItemIndicatorsPosted = true
189
post {
190
- if (recyclerView!!.isAttachedToWindow) {
+ if (recyclerView!!.run { isAttachedToWindow && adapter != null }) {
191
updateItemIndicators()
192
}
193
isUpdateItemIndicatorsPosted = false
0 commit comments