Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 950d9e9f authored by YK Hung's avatar YK Hung Committed by Android (Google) Code Review
Browse files

Merge "Add onClick for CardPreference" into main

parents 600021d7 808573df
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -61,6 +61,9 @@ constructor(
    /** The visibility of secondary button on tips card. The default value is `false`. */
    var secondaryButtonVisibility: Boolean = false

    var onClick: (() -> Unit)? = null

    /** The callback for click on card preference itself. */
    private var onDismiss: (() -> Unit)? = null

    /** Enable the dismiss button on tips card. */
@@ -87,6 +90,7 @@ constructor(
                    iconResId
                        ?.takeIf { it != Resources.ID_NULL }
                        ?.let { ImageVector.vectorResource(it) },
                    onClick = onClick,
                )
            )
        }