Fix formatting.
This commit is contained in:
parent
4c6f46e46c
commit
3dcf921c1a
1 changed files with 2 additions and 2 deletions
|
|
@ -199,8 +199,8 @@ private fun MediaGalleryPage(
|
||||||
val groupedMediaItems = state.groupedMediaItems
|
val groupedMediaItems = state.groupedMediaItems
|
||||||
if (groupedMediaItems.isLoadingItems(mode)) {
|
if (groupedMediaItems.isLoadingItems(mode)) {
|
||||||
// Need to trigger a pagination now if there is only one LoadingIndicator.
|
// Need to trigger a pagination now if there is only one LoadingIndicator.
|
||||||
(groupedMediaItems.dataOrNull()
|
val loadingItem = groupedMediaItems.dataOrNull()?.getItems(mode)?.singleOrNull() as? MediaItem.LoadingIndicator
|
||||||
?.getItems(mode)?.singleOrNull() as? MediaItem.LoadingIndicator)?.let { item ->
|
loadingItem?.let { item ->
|
||||||
LaunchedEffect(item.timestamp) {
|
LaunchedEffect(item.timestamp) {
|
||||||
state.eventSink(MediaGalleryEvents.LoadMore(item.direction))
|
state.eventSink(MediaGalleryEvents.LoadMore(item.direction))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue