mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-23 22:58:23 +00:00
Fixed deadlock (ANR) while playing voice recording
This commit is contained in:
parent
b47ae48529
commit
138635230a
1 changed files with 3 additions and 1 deletions
|
|
@ -384,7 +384,9 @@ class ChatMessageContentData(
|
|||
voiceRecordingPlayer.start()
|
||||
isVoiceRecordPlaying.value = true
|
||||
tickerFlow().onEach {
|
||||
voiceRecordPlayingPosition.postValue(voiceRecordingPlayer.currentPosition)
|
||||
withContext(Dispatchers.Main) {
|
||||
voiceRecordPlayingPosition.value = voiceRecordingPlayer.currentPosition
|
||||
}
|
||||
}.launchIn(scope)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue