Improve hardware bitmap threshold option

Also `spotlessApply`
This commit is contained in:
AntsyLich
2024-11-21 07:03:21 +06:00
parent 88aff2c77f
commit d6dfd24548
4 changed files with 26 additions and 16 deletions

View File

@ -10,7 +10,7 @@ import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.StateFlow
@Composable
fun <T: Any> StateFlow<Flow<PagingData<T>>>.collectAsLazyPagingItems(): LazyPagingItems<T> {
fun <T : Any> StateFlow<Flow<PagingData<T>>>.collectAsLazyPagingItems(): LazyPagingItems<T> {
val flow by collectAsState()
return flow.collectAsLazyPagingItems()
}