From 5bb1133f0f3a114d5ac06565abcdb965f8d1c28d Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 27 Jul 2022 14:59:41 +0200 Subject: [PATCH] Use non nullable parameters in the MangaCover invoke function (#7624) Issue cause the non nullables to become nullable has been fixed since 1.2.0-rc01 --- .../java/eu/kanade/presentation/components/MangaCover.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/components/MangaCover.kt b/app/src/main/java/eu/kanade/presentation/components/MangaCover.kt index 4118607afe..0b7765cef6 100644 --- a/app/src/main/java/eu/kanade/presentation/components/MangaCover.kt +++ b/app/src/main/java/eu/kanade/presentation/components/MangaCover.kt @@ -24,8 +24,8 @@ enum class MangaCover(val ratio: Float) { operator fun invoke( modifier: Modifier = Modifier, data: Any?, - contentDescription: String? = null, - shape: Shape? = null, + contentDescription: String = "", + shape: Shape = RoundedCornerShape(4.dp), onClick: (() -> Unit)? = null, ) { AsyncImage( @@ -35,7 +35,7 @@ enum class MangaCover(val ratio: Float) { contentDescription = contentDescription, modifier = modifier .aspectRatio(ratio) - .clip(shape ?: RoundedCornerShape(4.dp)) + .clip(shape) .then( if (onClick != null) { Modifier.clickable(