mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-10 12:47:26 +01:00
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
This commit is contained in:
parent
2b96709799
commit
5bb1133f0f
@ -24,8 +24,8 @@ enum class MangaCover(val ratio: Float) {
|
|||||||
operator fun invoke(
|
operator fun invoke(
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
data: Any?,
|
data: Any?,
|
||||||
contentDescription: String? = null,
|
contentDescription: String = "",
|
||||||
shape: Shape? = null,
|
shape: Shape = RoundedCornerShape(4.dp),
|
||||||
onClick: (() -> Unit)? = null,
|
onClick: (() -> Unit)? = null,
|
||||||
) {
|
) {
|
||||||
AsyncImage(
|
AsyncImage(
|
||||||
@ -35,7 +35,7 @@ enum class MangaCover(val ratio: Float) {
|
|||||||
contentDescription = contentDescription,
|
contentDescription = contentDescription,
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
.aspectRatio(ratio)
|
.aspectRatio(ratio)
|
||||||
.clip(shape ?: RoundedCornerShape(4.dp))
|
.clip(shape)
|
||||||
.then(
|
.then(
|
||||||
if (onClick != null) {
|
if (onClick != null) {
|
||||||
Modifier.clickable(
|
Modifier.clickable(
|
||||||
|
Loading…
Reference in New Issue
Block a user