diff --git a/app/src/main/java/soko/ekibun/bangumi/ui/view/FastScrollRecyclerView.kt b/app/src/main/java/soko/ekibun/bangumi/ui/view/FastScrollRecyclerView.kt index 4e5607e..2e46acc 100644 --- a/app/src/main/java/soko/ekibun/bangumi/ui/view/FastScrollRecyclerView.kt +++ b/app/src/main/java/soko/ekibun/bangumi/ui/view/FastScrollRecyclerView.kt @@ -164,7 +164,7 @@ class FastScrollRecyclerView @JvmOverloads constructor( } ?: adapter.itemCount) if (itemHeightCache.size != itemCount) itemHeightCache = IntArray(itemCount) { itemHeightCache.getOrNull(it) ?: 200 } - + if (itemHeightCache.isEmpty()) return if (layoutManager is LinearLayoutManager) { val firstIndex = layoutManager.findFirstVisibleItemPosition() val lastIndex = layoutManager.findLastVisibleItemPosition()