|
|
@ -66,7 +66,13 @@ class ReminderController @Inject constructor(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fun onDismiss(habit: Habit) {
|
|
|
|
fun onDismiss(habit: Habit) {
|
|
|
|
notificationTray.cancel(habit)
|
|
|
|
if (preferences.shouldMakeNotificationsSticky()) {
|
|
|
|
|
|
|
|
// This is a workaround to keep sticky notifications non-dismissible in Android 14+.
|
|
|
|
|
|
|
|
// If the notification is dismissed, we immediately reshow it.
|
|
|
|
|
|
|
|
notificationTray.reshow(habit)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
notificationTray.cancel(habit)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private fun showSnoozeDelayPicker(habit: Habit, context: Context) {
|
|
|
|
private fun showSnoozeDelayPicker(habit: Habit, context: Context) {
|
|
|
|