mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed ANR when playing call recording sometimes
This commit is contained in:
parent
774b37c73c
commit
66c2a74c8e
1 changed files with 4 additions and 2 deletions
|
|
@ -127,8 +127,10 @@ class RecordingData(val path: String, private val recordingListener: RecordingLi
|
|||
scope.launch {
|
||||
withContext(Dispatchers.IO) {
|
||||
for (tick in tickerChannel) {
|
||||
if (player.state == Player.State.Playing) {
|
||||
updatePosition()
|
||||
withContext(Dispatchers.Main) {
|
||||
if (player.state == Player.State.Playing) {
|
||||
updatePosition()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue