diff --git a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt index 87451fe6265..1db37dc2d5f 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -1302,7 +1302,6 @@ class ChatActivity : private fun initPreviewVoiceRecording() { voicePreviewMediaPlayer = MediaPlayer().apply { - Log.e(TAG, currentVoiceRecordFile) setDataSource(currentVoiceRecordFile) prepare() setOnPreparedListener { @@ -2221,6 +2220,7 @@ class ChatActivity : try { if (mediaRecorderState == MediaRecorderState.RECORDING) { stop() + reset() mediaRecorderState = MediaRecorderState.INITIAL Log.d(TAG, "stopped recorder") }