improve end of voice broadcast check
This commit is contained in:
		
							parent
							
								
									4e53366727
								
							
						
					
					
						commit
						c1dd66003a
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user