From b4bb8556751353c06531b55f3b052217254314c0 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 13 May 2023 22:36:58 -0400 Subject: [PATCH] Revert "Bump to somewhat newer version of Compose BOM" This reverts commit ce81b76150006b9b23ad5424d49c3de36fb8c090. Fixes crashes when opening menus. Cascade doesn't have an update to fix this yet. --- .../eu/kanade/presentation/webview/WebViewScreenContent.kt | 2 +- gradle/compose.versions.toml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/webview/WebViewScreenContent.kt b/app/src/main/java/eu/kanade/presentation/webview/WebViewScreenContent.kt index 5b607b8a2..661ae3fc8 100644 --- a/app/src/main/java/eu/kanade/presentation/webview/WebViewScreenContent.kt +++ b/app/src/main/java/eu/kanade/presentation/webview/WebViewScreenContent.kt @@ -114,7 +114,7 @@ fun WebViewScreenContent( ) { contentPadding -> val webClient = remember { object : AccompanistWebViewClient() { - override fun onPageStarted(view: WebView, url: String?, favicon: Bitmap?) { + override fun onPageStarted(view: WebView?, url: String?, favicon: Bitmap?) { super.onPageStarted(view, url, favicon) url?.let { onUrlChange(it) } } diff --git a/gradle/compose.versions.toml b/gradle/compose.versions.toml index 16d53ea6b..3264abb3e 100644 --- a/gradle/compose.versions.toml +++ b/gradle/compose.versions.toml @@ -1,11 +1,11 @@ [versions] compiler = "1.4.7" -compose-bom = "2023.04.00-alpha02" -accompanist = "0.31.2-alpha" +compose-bom = "2023.03.00" +accompanist = "0.30.1" [libraries] activity = "androidx.activity:activity-compose:1.7.1" -bom = { module = "dev.chrisbanes.compose:compose-bom", version.ref = "compose-bom" } +bom = { group = "dev.chrisbanes.compose", name = "compose-bom", version.ref = "compose-bom" } foundation = { module = "androidx.compose.foundation:foundation" } animation = { module = "androidx.compose.animation:animation" } animation-graphics = { module = "androidx.compose.animation:animation-graphics" }