mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-08 17:29:02 +01:00
Log successes in audio device switching.
This commit is contained in:
+1
@@ -201,6 +201,7 @@ class FullSignalAudioManagerApi31(context: Context, eventListener: EventListener
|
|||||||
Log.d(TAG, "Switching to new device of type ${candidate.type} from ${currentAudioDevice?.type}")
|
Log.d(TAG, "Switching to new device of type ${candidate.type} from ${currentAudioDevice?.type}")
|
||||||
val result = androidAudioManager.setCommunicationDevice(candidate)
|
val result = androidAudioManager.setCommunicationDevice(candidate)
|
||||||
if (result) {
|
if (result) {
|
||||||
|
Log.w(TAG, "Succeeded in setting ${candidate.id} (type: ${candidate.type}) as communication device.")
|
||||||
eventListener?.onAudioDeviceChanged(AudioDeviceMapping.fromPlatformType(candidate.type), availableCommunicationDevices.map { AudioDeviceMapping.fromPlatformType(it.type) }.toSet())
|
eventListener?.onAudioDeviceChanged(AudioDeviceMapping.fromPlatformType(candidate.type), availableCommunicationDevices.map { AudioDeviceMapping.fromPlatformType(it.type) }.toSet())
|
||||||
} else {
|
} else {
|
||||||
Log.w(TAG, "Failed to set ${candidate.id} as communication device.")
|
Log.w(TAG, "Failed to set ${candidate.id} as communication device.")
|
||||||
|
|||||||
Reference in New Issue
Block a user