From b8af1621b52e3c2a47d9ed4f40051413e51b238b Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Fri, 23 Jun 2023 08:50:18 +0700 Subject: [PATCH] Update Compose BOM v2023.06.00-alpha01 (#9628) --- gradle/compose.versions.toml | 4 ++-- .../main/java/tachiyomi/presentation/core/components/Pager.kt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gradle/compose.versions.toml b/gradle/compose.versions.toml index 20cee1f33..1bb556acd 100644 --- a/gradle/compose.versions.toml +++ b/gradle/compose.versions.toml @@ -1,7 +1,7 @@ [versions] compiler = "1.4.7" -compose-bom = "2023.04.00-beta02" -accompanist = "0.31.2-alpha" +compose-bom = "2023.06.00-alpha01" +accompanist = "0.31.4-beta" [libraries] activity = "androidx.activity:activity-compose:1.7.2" diff --git a/presentation-core/src/main/java/tachiyomi/presentation/core/components/Pager.kt b/presentation-core/src/main/java/tachiyomi/presentation/core/components/Pager.kt index 65802c8e6..521f988b8 100644 --- a/presentation-core/src/main/java/tachiyomi/presentation/core/components/Pager.kt +++ b/presentation-core/src/main/java/tachiyomi/presentation/core/components/Pager.kt @@ -30,7 +30,8 @@ fun HorizontalPager( reverseLayout: Boolean = false, key: ((index: Int) -> Any)? = null, pageNestedScrollConnection: NestedScrollConnection = PagerDefaults.pageNestedScrollConnection( - Orientation.Horizontal, + state = state, + orientation = Orientation.Horizontal, ), pageContent: @Composable PagerScope.(page: Int) -> Unit, ) {