mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-21 19:48:29 +00:00
Don't stop playback on seek.
This commit is contained in:
committed by
Alex Hart
parent
f7e89d75a4
commit
dd62d92ffb
@@ -162,9 +162,10 @@ public class VoiceNotePlaybackService extends MediaSessionService {
|
|||||||
player.seekTo(mediaItemIndex, 1);
|
player.seekTo(mediaItemIndex, 1);
|
||||||
player.setPlayWhenReady(true);
|
player.setPlayWhenReady(true);
|
||||||
}
|
}
|
||||||
|
} else if (reason == Player.DISCONTINUITY_REASON_SEEK) {
|
||||||
|
player.setPlayWhenReady(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
boolean isWithinThreshold = mediaItemIndex < LOAD_MORE_THRESHOLD ||
|
boolean isWithinThreshold = mediaItemIndex < LOAD_MORE_THRESHOLD ||
|
||||||
mediaItemIndex + LOAD_MORE_THRESHOLD >= player.getMediaItemCount();
|
mediaItemIndex + LOAD_MORE_THRESHOLD >= player.getMediaItemCount();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user