Fixed DND checking
This commit is contained in:
@ -1402,8 +1402,7 @@ class BaresipService: Service() {
|
|||||||
|
|
||||||
private fun shouldStartRinging(channelId: String): Boolean {
|
private fun shouldStartRinging(channelId: String): Boolean {
|
||||||
val currentFilter = nm.currentInterruptionFilter
|
val currentFilter = nm.currentInterruptionFilter
|
||||||
val dndAllowsRinging = currentFilter == NotificationManager.INTERRUPTION_FILTER_ALL ||
|
val dndAllowsRinging = currentFilter <= NotificationManager.INTERRUPTION_FILTER_ALL
|
||||||
currentFilter == NotificationManager.INTERRUPTION_FILTER_PRIORITY
|
|
||||||
if (dndAllowsRinging)
|
if (dndAllowsRinging)
|
||||||
return true
|
return true
|
||||||
val channel = nm.getNotificationChannel(channelId)
|
val channel = nm.getNotificationChannel(channelId)
|
||||||
|
|||||||
Reference in New Issue
Block a user