From abd3efa35efe896037a17497f9cb65c24de8f248 Mon Sep 17 00:00:00 2001 From: Aashay Gaikwad Date: Wed, 25 Oct 2023 19:48:30 +0100 Subject: [PATCH] Handled params and warnings --- .../kotlin/com/bumble/appyx/imageloader/ResourceImage.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demos/image-loader/common/src/commonMain/kotlin/com/bumble/appyx/imageloader/ResourceImage.kt b/demos/image-loader/common/src/commonMain/kotlin/com/bumble/appyx/imageloader/ResourceImage.kt index ff590f5e1..b03954d58 100644 --- a/demos/image-loader/common/src/commonMain/kotlin/com/bumble/appyx/imageloader/ResourceImage.kt +++ b/demos/image-loader/common/src/commonMain/kotlin/com/bumble/appyx/imageloader/ResourceImage.kt @@ -15,12 +15,13 @@ import kotlinx.coroutines.withContext import org.jetbrains.compose.resources.ExperimentalResourceApi import org.jetbrains.compose.resources.resource +@Suppress("TooGenericExceptionCaught", "SwallowedException") @OptIn(ExperimentalResourceApi::class) @Composable fun ResourceImage( path: String, - fallbackUrl: String = path, modifier: Modifier = Modifier, + fallbackUrl: String = path, contentDescription: String? = null, contentScale: ContentScale = ContentScale.Fit ) {