Don't stop playback on seek.
This commit is contained in:
parent
f7e89d75a4
commit
dd62d92ffb
1 changed files with 2 additions and 1 deletions
|
@ -162,9 +162,10 @@ public class VoiceNotePlaybackService extends MediaSessionService {
|
|||
player.seekTo(mediaItemIndex, 1);
|
||||
player.setPlayWhenReady(true);
|
||||
}
|
||||
} else if (reason == Player.DISCONTINUITY_REASON_SEEK) {
|
||||
player.setPlayWhenReady(true);
|
||||
}
|
||||
|
||||
|
||||
boolean isWithinThreshold = mediaItemIndex < LOAD_MORE_THRESHOLD ||
|
||||
mediaItemIndex + LOAD_MORE_THRESHOLD >= player.getMediaItemCount();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue