actually allows to play in background consecutive voice messages

Signed-off-by: Giacomo Pacini <giacomopacini98@gmail.com>
This commit is contained in:
Giacomo Pacini 2024-12-19 12:33:48 +01:00
parent 169dac4045
commit 4fa06520ea
No known key found for this signature in database
GPG Key ID: 2FBC97406B43D889

View File

@ -1727,7 +1727,7 @@ class ChatActivity :
.next_voice_message_doodle) .next_voice_message_doodle)
defaultMediaPlayer.setOnCompletionListener { defaultMediaPlayer.setOnCompletionListener {
defaultMediaPlayer.release() defaultMediaPlayer.release()
setUpWaveform(nextMessage as ChatMessage, doPlay) setUpWaveform(nextMessage as ChatMessage, doPlay, true)
} }
defaultMediaPlayer.start() defaultMediaPlayer.start()
} }