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

Commit c6a2fdf1 authored by songferngwang's avatar songferngwang
Browse files

To modify the icon on SettingsAlertDialogWithIcon

Bug: 330097568
Test: build pass
Change-Id: I97a48ff3575e810d2b407840fd14f1271620f45f
parent 05d9c9a0
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -39,11 +39,17 @@ fun SettingsAlertDialogWithIcon(
    confirmButton: AlertDialogButton?,
    dismissButton: AlertDialogButton?,
    title: String?,
    icon: @Composable (() -> Unit)? = {
        Icon(
            Icons.Default.WarningAmber,
            contentDescription = null
        )
    },
    text: @Composable (() -> Unit)?,
) {
    AlertDialog(
        onDismissRequest = onDismissRequest,
        icon = { Icon(Icons.Default.WarningAmber, contentDescription = null) },
        icon = icon,
        modifier = Modifier.width(getDialogWidth()),
        confirmButton = {
            confirmButton?.let {