Implement runtime notification permission; bump targetSdk to 33

This commit is contained in:
2023-11-25 07:06:47 -06:00
parent 7735247521
commit ed8c60e52f
8 changed files with 66 additions and 18 deletions

View File

@@ -115,6 +115,11 @@ class ReminderScheduler @Inject constructor(
for (habit in reminderHabits) schedule(habit)
}
@Synchronized
fun hasHabitsWithReminders(): Boolean {
return !habitList.getFiltered(HabitMatcher.WITH_ALARM).isEmpty
}
@Synchronized
fun startListening() {
commandRunner.addListener(this)