mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Implement runtime notification permission; bump targetSdk to 33
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user