Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Android Studio lint errors in AudioRecordingController.kt #17195

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class AudioRecordingController(
audioPlayer!!.reset()
}
} catch (e: IllegalStateException) {
Timber.w("Media Player couldn't be reset or already reset", e)
Timber.w(e, "Media Player couldn't be reset or already reset")
}
}

Expand Down Expand Up @@ -663,7 +663,7 @@ class AudioRecordingController(
try {
setupForNewRecording()
} catch (e: Exception) {
Timber.d("Unable to reset the audio recorder", e)
Timber.d(e, "Unable to reset the audio recorder")
}
}

Expand Down Expand Up @@ -700,7 +700,7 @@ class AudioRecordingController(
audioWaveform.addAmplitude(maxAmplitude.toFloat())
}
} catch (e: IllegalStateException) {
Timber.d("Audio recorder interrupted")
Timber.d(e, "Audio recorder interrupted")
}
}

Expand Down