@qusaieilouti99/call-manager 0.1.27 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,7 @@ import android.content.ComponentName
|
|
|
5
5
|
import android.content.Context
|
|
6
6
|
import android.content.Intent
|
|
7
7
|
import android.media.AudioAttributes
|
|
8
|
+
import android.media.AudioManager.AudioDeviceCallback
|
|
8
9
|
import android.media.RingtoneManager
|
|
9
10
|
import android.os.Build
|
|
10
11
|
import android.os.Bundle
|
|
@@ -306,7 +307,7 @@ object CallEngine {
|
|
|
306
307
|
}
|
|
307
308
|
|
|
308
309
|
// --- Audio Device Change Listener ---
|
|
309
|
-
private val audioDeviceCallback = object :
|
|
310
|
+
private val audioDeviceCallback = object : AudioDeviceCallback() {
|
|
310
311
|
override fun onAudioDevicesAdded(addedDevices: Array<out AudioDeviceInfo>?) {
|
|
311
312
|
emitAudioDevicesChanged()
|
|
312
313
|
}
|