mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 19:05:56 +03:00
improve end of voice broadcast check
This commit is contained in:
parent
4e53366727
commit
c1dd66003a
1 changed files with 1 additions and 1 deletions
|
@ -402,7 +402,7 @@ class VoiceBroadcastPlayerImpl @Inject constructor(
|
|||
}
|
||||
}
|
||||
State.IDLE -> {
|
||||
if (playbackTime == null || percentage == null || playbackTime == playlist.duration) {
|
||||
if (playbackTime == null || percentage == null || (playlist.duration - playbackTime) < 50) {
|
||||
playbackTracker.stopPlayback(id)
|
||||
} else {
|
||||
playbackTracker.updatePausedAtPlaybackTime(id, playbackTime, percentage)
|
||||
|
|
Loading…
Reference in a new issue