diff --git a/android/recyclerview/src/main/kotlin/dev/inmo/micro_utils/android/recyclerview/LeftItems.kt b/android/recyclerview/src/main/kotlin/dev/inmo/micro_utils/android/recyclerview/LeftItems.kt index d37fc919591..dc5cb93eebe 100644 --- a/android/recyclerview/src/main/kotlin/dev/inmo/micro_utils/android/recyclerview/LeftItems.kt +++ b/android/recyclerview/src/main/kotlin/dev/inmo/micro_utils/android/recyclerview/LeftItems.kt @@ -14,7 +14,7 @@ private inline fun RecyclerView.LayoutManager.findLastVisibleItemPositionGetter( fun RecyclerView.lastVisibleItemFlow( completingScope: CoroutineScope ): Flow { - val lastVisibleElementFun: () -> Int = layoutManager ?.findLastVisibleItemPositionGetter() ?: error("Currently supported only linear layout manager") + val lastVisibleElementFun: () -> Int = layoutManager ?.findLastVisibleItemPositionGetter() ?: error("Currently supported only linear and grid layout manager") val lastVisibleFlow = MutableStateFlow(lastVisibleElementFun()) addOnScrollListener( object : RecyclerView.OnScrollListener() {