From aab70e14fc31feae61e12d20c1608c311e3432af Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 15 Feb 2021 17:56:05 +0100 Subject: [PATCH] Cleanup logs (fix lint) --- .../vector/app/features/call/audio/CallAudioManager.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/call/audio/CallAudioManager.kt b/vector/src/main/java/im/vector/app/features/call/audio/CallAudioManager.kt index 66370763e1..36a11b5923 100644 --- a/vector/src/main/java/im/vector/app/features/call/audio/CallAudioManager.kt +++ b/vector/src/main/java/im/vector/app/features/call/audio/CallAudioManager.kt @@ -83,12 +83,12 @@ class CallAudioManager(private val context: Context, val configChange: (() -> Un fun setAudioDevice(device: Device) { runInAudioThread(Runnable { if (!_availableDevices.contains(device)) { - Timber.w(" Audio device not available: $device") + Timber.w("Audio device not available: $device") userSelectedDevice = null return@Runnable } if (mode != Mode.DEFAULT) { - Timber.i(" User selected device set to: $device") + Timber.i("User selected device set to: $device") userSelectedDevice = device updateAudioRoute(mode, false) } @@ -108,7 +108,7 @@ class CallAudioManager(private val context: Context, val configChange: (() -> Un success = updateAudioRoute(mode, false) } catch (e: Throwable) { success = false - Timber.e(e, " Failed to update audio route for mode: " + mode) + Timber.e(e, "Failed to update audio route for mode: $mode") } if (success) { this@CallAudioManager.mode = mode @@ -124,7 +124,7 @@ class CallAudioManager(private val context: Context, val configChange: (() -> Un * `false`, otherwise. */ private fun updateAudioRoute(mode: Mode, force: Boolean): Boolean { - Timber.i(" Update audio route for mode: " + mode) + Timber.i("Update audio route for mode: $mode") if (!audioDeviceRouter?.setMode(mode).orFalse()) { return false } @@ -158,7 +158,7 @@ class CallAudioManager(private val context: Context, val configChange: (() -> Un return true } selectedDevice = audioDevice - Timber.i(" Selected audio device: " + audioDevice) + Timber.i("Selected audio device: $audioDevice") audioDeviceRouter?.setAudioRoute(audioDevice) configChange?.invoke() return true