Fixed DND checking

This commit is contained in:
Juha Heinanen
2025-08-19 09:03:15 +03:00
parent a85004073e
commit 79d6f4ba70

View File

@ -1402,8 +1402,7 @@ class BaresipService: Service() {
private fun shouldStartRinging(channelId: String): Boolean {
val currentFilter = nm.currentInterruptionFilter
val dndAllowsRinging = currentFilter == NotificationManager.INTERRUPTION_FILTER_ALL ||
currentFilter == NotificationManager.INTERRUPTION_FILTER_PRIORITY
val dndAllowsRinging = currentFilter <= NotificationManager.INTERRUPTION_FILTER_ALL
if (dndAllowsRinging)
return true
val channel = nm.getNotificationChannel(channelId)