API 34: Implement workaround to keep sticky notifications non-dismissible

This commit is contained in:
2023-11-25 15:41:39 -06:00
parent 4975ba2752
commit f0ce05e06e
2 changed files with 13 additions and 1 deletions

View File

@@ -89,6 +89,12 @@ class NotificationTray @Inject constructor(
}
}
fun reshow(habit: Habit) {
active[habit]?.let {
taskRunner.execute(ShowNotificationTask(habit, it))
}
}
interface SystemTray {
fun removeNotification(notificationId: Int)
fun showNotification(