Add a shortcut to navigate to the notification settings in case of error.
This commit is contained in:
parent
e31fc17c9a
commit
5180ce388c
6 changed files with 37 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue