Refactor call audio routing and bluetooth management.

This commit is contained in:
Cody Henthorne
2021-09-27 11:23:10 -04:00
parent 6c55916cda
commit e637f15a43
36 changed files with 1345 additions and 981 deletions

View File

@@ -0,0 +1,15 @@
package org.thoughtcrime.securesms.util
import android.content.BroadcastReceiver
import android.content.Context
fun Context.safeUnregisterReceiver(receiver: BroadcastReceiver?) {
if (receiver == null) {
return
}
try {
unregisterReceiver(receiver)
} catch (e: IllegalArgumentException) {
}
}