mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-04-25 21:22:16 +03:00
Don't skip around when doing "Play Next" while music is playing
This commit is contained in:
parent
a0b9e738a5
commit
e9fdbd924b
@ -460,7 +460,7 @@ class MediaPlayerManager(
|
||||
// We can't just use play(0,0) then all random playlists will start with the first track.
|
||||
// Additionally the shuffle order becomes clear on after some time, so we need to wait for
|
||||
// the right event, and can start playback only then.
|
||||
if (autoPlay) {
|
||||
if (autoPlay && controller?.isPlaying != true) {
|
||||
if (isShufflePlayEnabled) {
|
||||
deferredPlay = {
|
||||
val start = controller?.currentTimeline
|
||||
|
@ -169,7 +169,7 @@ class DownloadHandler(
|
||||
)
|
||||
|
||||
if (Settings.shouldTransitionOnPlayback &&
|
||||
(insertionMode == MediaPlayerManager.InsertionMode.CLEAR || autoPlay)
|
||||
insertionMode == MediaPlayerManager.InsertionMode.CLEAR
|
||||
) {
|
||||
fragment.findNavController().popBackStack(R.id.playerFragment, true)
|
||||
fragment.findNavController().navigate(R.id.playerFragment)
|
||||
|
Loading…
x
Reference in New Issue
Block a user