mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Add a shortcut to navigate to the notification settings in case of error.
This commit is contained in:
+4
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user