From 07670ff38caced1698b045725660457eabd80564 Mon Sep 17 00:00:00 2001 From: Julius Linus Date: Tue, 28 Nov 2023 07:41:45 -0600 Subject: [PATCH] small adjustments Signed-off-by: rapterjet2004 --- app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") }