Update dependency androidx.compose:compose-bom to v2025.04.01 (mihonapp/mihon#2040)

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Cuong-Tran <cuongtran.tm@gmail.com>
(cherry picked from commit d721a4321bdc6fafdd32e7bfd451b61b2bdd66b7)
This commit is contained in:
Mend Renovate 2025-05-04 18:28:12 +02:00 committed by Cuong-Tran
parent 5f762beb90
commit 1be6c1a3ee
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
3 changed files with 8 additions and 8 deletions

View file

@ -35,26 +35,26 @@ internal fun LazyListScope.libraryUpdateErrorUiItems(
onClick: (LibraryUpdateErrorItem) -> Unit,
onClickCover: (LibraryUpdateErrorItem) -> Unit,
) {
uiModels.forEach {
when (it) {
uiModels.forEach { uiModel ->
when (uiModel) {
is LibraryUpdateErrorUiModel.Header -> {
stickyHeader(
key = "$STICKY_HEADER_KEY_PREFIX-errorHeader-${it.hashCode()}",
key = "$STICKY_HEADER_KEY_PREFIX-errorHeader-${uiModel.hashCode()}",
contentType = "header",
) {
ListGroupHeader(
modifier = Modifier.animateItemFastScroll(),
text = it.errorMessage,
text = uiModel.errorMessage,
tonalElevation = 1.dp,
)
}
}
is LibraryUpdateErrorUiModel.Item -> {
item(
key = "error-${it.item.error.errorId}-${it.item.error.mangaId}",
key = "error-${uiModel.item.error.errorId}-${uiModel.item.error.mangaId}",
contentType = "item",
) {
val libraryUpdateErrorItem = it.item
val libraryUpdateErrorItem = uiModel.item
LibraryUpdateErrorUiItem(
modifier = Modifier.animateItemFastScroll(),
error = libraryUpdateErrorItem.error,

View file

@ -1,5 +1,5 @@
[versions]
compose-bom = "2025.04.00"
compose-bom = "2025.04.01"
[libraries]
activity = "androidx.activity:activity-compose:1.10.1"

View file

@ -227,7 +227,7 @@ private fun <T> AnchoredDraggableState<T>.preUpPostDownNestedScrollConnection(
override suspend fun onPreFling(available: Velocity): Velocity {
val toFling = available.toFloat()
return if (toFling < 0 && offset > anchors.minAnchor()) {
return if (toFling < 0 && offset > anchors.minPosition()) {
onFling(toFling)
// since we go to the anchor with tween settling, consume all for the best UX
available