fix(deps): update dependency dev.chrisbanes.compose:compose-bom to v2…

…024.05.00-alpha03

* fix(deps): update dependency dev.chrisbanes.compose:compose-bom to v2024.05.00-alpha03

* Fix build

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
This commit is contained in:
Secozzi 2024-07-12 19:19:21 +02:00
parent 639d56364f
commit d1cf93bed1
No known key found for this signature in database
GPG key ID: 71E9C97D8DDC2662
11 changed files with 15 additions and 15 deletions

View file

@ -88,7 +88,7 @@ fun AnimeExtensionScreen(
PullRefresh(
refreshing = state.isRefreshing,
onRefresh = onRefresh,
enabled = { !state.isLoading },
enabled = !state.isLoading,
) {
when {
state.isLoading -> LoadingScreen(Modifier.padding(contentPadding))

View file

@ -90,7 +90,7 @@ fun MangaExtensionScreen(
PullRefresh(
refreshing = state.isRefreshing,
onRefresh = onRefresh,
enabled = { !state.isLoading },
enabled = !state.isLoading,
) {
when {
state.isLoading -> LoadingScreen(Modifier.padding(contentPadding))

View file

@ -202,7 +202,7 @@ fun AppBarTitle(
maxLines = 1,
overflow = TextOverflow.Ellipsis,
modifier = Modifier.basicMarquee(
delayMillis = 2_000,
repeatDelayMillis = 2_000,
),
)
}

View file

@ -402,7 +402,7 @@ private fun AnimeScreenSmallImpl(
PullRefresh(
refreshing = state.isRefreshingData,
onRefresh = onRefresh,
enabled = { !isAnySelected },
enabled = !isAnySelected,
indicatorPadding = PaddingValues(top = topPadding),
) {
val layoutDirection = LocalLayoutDirection.current
@ -687,7 +687,7 @@ fun AnimeScreenLargeImpl(
PullRefresh(
refreshing = state.isRefreshingData,
onRefresh = onRefresh,
enabled = { !isAnySelected },
enabled = !isAnySelected,
indicatorPadding = PaddingValues(
start = insetPadding.calculateStartPadding(layoutDirection),
top = with(density) { topBarHeight.toDp() },

View file

@ -372,7 +372,7 @@ private fun MangaScreenSmallImpl(
PullRefresh(
refreshing = state.isRefreshingData,
onRefresh = onRefresh,
enabled = { !isAnySelected },
enabled = !isAnySelected,
indicatorPadding = PaddingValues(top = topPadding),
) {
val layoutDirection = LocalLayoutDirection.current
@ -623,7 +623,7 @@ fun MangaScreenLargeImpl(
PullRefresh(
refreshing = state.isRefreshingData,
onRefresh = onRefresh,
enabled = { !isAnySelected },
enabled = !isAnySelected,
indicatorPadding = PaddingValues(
start = insetPadding.calculateStartPadding(layoutDirection),
top = with(density) { topBarHeight.toDp() },

View file

@ -94,7 +94,7 @@ fun AnimeLibraryContent(
isRefreshing = false
}
},
enabled = { notSelectionMode },
enabled = notSelectionMode,
) {
AnimeLibraryPager(
state = pagerState,

View file

@ -94,7 +94,7 @@ fun MangaLibraryContent(
isRefreshing = false
}
},
enabled = { notSelectionMode },
enabled = notSelectionMode,
) {
MangaLibraryPager(
state = pagerState,

View file

@ -86,7 +86,7 @@ fun AnimeUpdateScreen(
isRefreshing = false
}
},
enabled = { !state.selectionMode },
enabled = !state.selectionMode,
indicatorPadding = contentPadding,
) {
FastScrollLazyColumn(

View file

@ -82,7 +82,7 @@ fun MangaUpdateScreen(
isRefreshing = false
}
},
enabled = { !state.selectionMode },
enabled = !state.selectionMode,
indicatorPadding = contentPadding,
) {
FastScrollLazyColumn(

View file

@ -1,6 +1,6 @@
[versions]
compose-bom = "2024.05.00-alpha02"
accompanist = "0.35.0-alpha"
compose-bom = "2024.05.00-alpha03"
accompanist = "0.35.1-alpha"
[libraries]
activity = "androidx.activity:activity-compose:1.9.0"

View file

@ -22,7 +22,7 @@ import androidx.compose.ui.unit.dp
@Composable
fun PullRefresh(
refreshing: Boolean,
enabled: () -> Boolean,
enabled: Boolean,
onRefresh: () -> Unit,
modifier: Modifier = Modifier,
indicatorPadding: PaddingValues = PaddingValues(0.dp),
@ -36,7 +36,7 @@ fun PullRefresh(
state = state,
enabled = enabled,
onRefresh = onRefresh,
)
),
) {
content()