From 4d075ff190b89e8935bac0fa8e2e4b2935b02abb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sun, 4 May 2025 18:28:12 +0200 Subject: [PATCH] Update dependency androidx.compose:compose-bom to v2025.04.01 (#2040) Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com> (cherry picked from commit d721a4321bdc6fafdd32e7bfd451b61b2bdd66b7) --- gradle/compose.versions.toml | 2 +- .../tachiyomi/presentation/core/components/AdaptiveSheet.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle/compose.versions.toml b/gradle/compose.versions.toml index 5c63a6ba3..3d5f06a41 100644 --- a/gradle/compose.versions.toml +++ b/gradle/compose.versions.toml @@ -1,5 +1,5 @@ [versions] -compose-bom = "2025.04.00" +compose-bom = "2025.04.01" [libraries] activity = "androidx.activity:activity-compose:1.10.1" diff --git a/presentation-core/src/main/java/tachiyomi/presentation/core/components/AdaptiveSheet.kt b/presentation-core/src/main/java/tachiyomi/presentation/core/components/AdaptiveSheet.kt index 61e8be488..a33ad3a5b 100644 --- a/presentation-core/src/main/java/tachiyomi/presentation/core/components/AdaptiveSheet.kt +++ b/presentation-core/src/main/java/tachiyomi/presentation/core/components/AdaptiveSheet.kt @@ -227,7 +227,7 @@ private fun AnchoredDraggableState.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