mirror of
https://gitea.mayex.net/mayekkuzu/Audinaut.git
synced 2025-01-23 23:54:54 +03:00
Repeat one tweaks
This commit is contained in:
parent
c0ee2d908e
commit
93658f32d3
@ -950,7 +950,6 @@ public class DownloadService extends Service {
|
|||||||
public synchronized void next(boolean forceStart) {
|
public synchronized void next(boolean forceStart) {
|
||||||
// If only one song, just skip within song
|
// If only one song, just skip within song
|
||||||
if (currentPlaying != null && !currentPlaying.isSong()) {
|
if (currentPlaying != null && !currentPlaying.isSong()) {
|
||||||
fastForward();
|
|
||||||
return;
|
return;
|
||||||
} else if (playerState == PREPARING || playerState == PREPARED) {
|
} else if (playerState == PREPARING || playerState == PREPARED) {
|
||||||
return;
|
return;
|
||||||
@ -958,6 +957,9 @@ public class DownloadService extends Service {
|
|||||||
|
|
||||||
int index = getCurrentPlayingIndex();
|
int index = getCurrentPlayingIndex();
|
||||||
int nextPlayingIndex = getNextPlayingIndex();
|
int nextPlayingIndex = getNextPlayingIndex();
|
||||||
|
if (index == nextPlayingIndex && size() > 1) {
|
||||||
|
nextPlayingIndex++;
|
||||||
|
}
|
||||||
if (index != -1 && nextPlayingIndex < size()) {
|
if (index != -1 && nextPlayingIndex < size()) {
|
||||||
play(nextPlayingIndex, playerState != PAUSED && playerState != STOPPED && playerState != IDLE || forceStart);
|
play(nextPlayingIndex, playerState != PAUSED && playerState != STOPPED && playerState != IDLE || forceStart);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user