From 634d793839d2ad0e4b5379348bd9bc2a4c82b499 Mon Sep 17 00:00:00 2001 From: Ax333l Date: Thu, 4 Apr 2024 17:50:31 +0200 Subject: [PATCH] fix: crash caused by compose inlining bug This is a bug in jetpack compose. Inlining this function wasn't very important anyways so it's best to just stop inlining it to avoid the crash. --- .../manager/ui/component/DangerousActionDialogBase.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/app/revanced/manager/ui/component/DangerousActionDialogBase.kt b/app/src/main/java/app/revanced/manager/ui/component/DangerousActionDialogBase.kt index 32804012..ca11b31d 100644 --- a/app/src/main/java/app/revanced/manager/ui/component/DangerousActionDialogBase.kt +++ b/app/src/main/java/app/revanced/manager/ui/component/DangerousActionDialogBase.kt @@ -27,9 +27,9 @@ import androidx.compose.ui.unit.dp import app.revanced.manager.R @Composable -inline fun DangerousActionDialogBase( - noinline onCancel: () -> Unit, - crossinline confirmButton: @Composable (Boolean) -> Unit, +fun DangerousActionDialogBase( + onCancel: () -> Unit, + confirmButton: @Composable (Boolean) -> Unit, @StringRes title: Int, body: String, ) {