|
|
|
@ -24,6 +24,7 @@ import androidx.compose.material.icons.outlined.DeveloperMode
@@ -24,6 +24,7 @@ import androidx.compose.material.icons.outlined.DeveloperMode
|
|
|
|
|
import androidx.compose.material.icons.outlined.Help |
|
|
|
|
import androidx.compose.material.icons.outlined.InsertChart |
|
|
|
|
import androidx.compose.material.icons.outlined.ManageAccounts |
|
|
|
|
import androidx.compose.material.icons.outlined.Notifications |
|
|
|
|
import androidx.compose.material.icons.outlined.VerifiedUser |
|
|
|
|
import androidx.compose.runtime.Composable |
|
|
|
|
import androidx.compose.ui.Modifier |
|
|
|
@ -58,6 +59,7 @@ fun PreferencesRootView(
@@ -58,6 +59,7 @@ fun PreferencesRootView(
|
|
|
|
|
onOpenAbout: () -> Unit, |
|
|
|
|
onOpenDeveloperSettings: () -> Unit, |
|
|
|
|
onSuccessLogout: (String?) -> Unit, |
|
|
|
|
onOpenNotificationSettings: () -> Unit, |
|
|
|
|
modifier: Modifier = Modifier, |
|
|
|
|
) { |
|
|
|
|
val snackbarHostState = rememberSnackbarHostState(snackbarMessage = state.snackbarMessage) |
|
|
|
@ -92,6 +94,11 @@ fun PreferencesRootView(
@@ -92,6 +94,11 @@ fun PreferencesRootView(
|
|
|
|
|
onClick = onOpenAnalytics, |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
PreferenceText( |
|
|
|
|
title = "Notifications", |
|
|
|
|
icon = Icons.Outlined.Notifications, |
|
|
|
|
onClick = onOpenNotificationSettings, |
|
|
|
|
) |
|
|
|
|
PreferenceText( |
|
|
|
|
title = stringResource(id = CommonStrings.action_report_bug), |
|
|
|
|
icon = Icons.Outlined.BugReport, |
|
|
|
@ -153,5 +160,6 @@ private fun ContentToPreview(matrixUser: MatrixUser) {
@@ -153,5 +160,6 @@ private fun ContentToPreview(matrixUser: MatrixUser) {
|
|
|
|
|
onVerifyClicked = {}, |
|
|
|
|
onSuccessLogout = {}, |
|
|
|
|
onManageAccountClicked = {}, |
|
|
|
|
onOpenNotificationSettings = {}, |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|