Log device type when failing to set audio device.
This commit is contained in:
parent
520b3a14bc
commit
d2d000ef16
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ class FullSignalAudioManagerApi31(context: Context, eventListener: EventListener
|
|||
if (result) {
|
||||
eventListener?.onAudioDeviceChanged(AudioDeviceMapping.fromPlatformType(candidate.type), availableCommunicationDevices.map { AudioDeviceMapping.fromPlatformType(it.type) }.toSet())
|
||||
} else {
|
||||
Log.w(TAG, "Failed to set ${candidate.id} as communication device.")
|
||||
Log.w(TAG, "Failed to set ${candidate.id} of type ${candidate.type}as communication device.")
|
||||
}
|
||||
} else {
|
||||
val searchOrder: List<AudioDevice> = listOf(AudioDevice.BLUETOOTH, AudioDevice.WIRED_HEADSET, defaultAudioDevice, AudioDevice.EARPIECE, AudioDevice.SPEAKER_PHONE, AudioDevice.NONE).distinct()
|
||||
|
|
Loading…
Add table
Reference in a new issue