diff --git a/app/src/main/java/top/maary/oblivionis/ui/screen/SettingsScreen.kt b/app/src/main/java/top/maary/oblivionis/ui/screen/SettingsScreen.kt index 095f8ee..a7a14ac 100644 --- a/app/src/main/java/top/maary/oblivionis/ui/screen/SettingsScreen.kt +++ b/app/src/main/java/top/maary/oblivionis/ui/screen/SettingsScreen.kt @@ -151,7 +151,10 @@ fun SettingsScreen( } else { - notificationViewModel.cancelNotification() + scope.launch { + dataStore.setNotificationEnabled(false) + notificationViewModel.cancelNotification() + } } } }