Add option to make upcoming lesson notification not persistent (#1537)

This commit is contained in:
Mateusz Idziejczak
2021-09-28 11:48:25 +02:00
committed by GitHub
parent e10e530dee
commit 5bc54c12f1
7 changed files with 74 additions and 25 deletions

View File

@ -42,7 +42,7 @@ class NotificationsPresenter @Inject constructor(
preferencesRepository.apply {
when (key) {
isUpcomingLessonsNotificationsEnableKey -> {
isUpcomingLessonsNotificationsEnableKey, isUpcomingLessonsNotificationsPersistentKey -> {
if (!isUpcomingLessonsNotificationsEnable) {
timetableNotificationHelper.cancelNotification()
}