Add a shortcut to navigate to the notification settings in case of error.

This commit is contained in:
Benoit Marty 2024-06-17 16:20:23 +02:00
parent e31fc17c9a
commit 5180ce388c
6 changed files with 37 additions and 3 deletions

View file

@ -47,6 +47,8 @@ fun ErrorDialogWithDoNotShowAgain(
modifier: Modifier = Modifier,
title: String = ErrorDialogDefaults.title,
submitText: String = ErrorDialogDefaults.submitText,
cancelText: String? = null,
onCancel: () -> Unit = {},
) {
var doNotShowAgain by remember { mutableStateOf(false) }
BasicAlertDialog(
@ -56,7 +58,9 @@ fun ErrorDialogWithDoNotShowAgain(
SimpleAlertDialogContent(
title = title,
submitText = submitText,
cancelText = cancelText,
onSubmitClick = { onDismiss(doNotShowAgain) },
onCancelClick = onCancel,
) {
Column {
Text(