aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DLNAController.java1
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DownloadService.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DLNAController.java b/app/src/main/java/github/daneren2005/dsub/service/DLNAController.java
index f978c614..32c03306 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/DLNAController.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/DLNAController.java
@@ -630,6 +630,7 @@ public class DLNAController extends RemoteController {
if(positionInfo.getTrackURI() != null && positionInfo.getTrackURI().equals(nextPlayingURI) && downloadService.getNextPlayerState() == PlayerState.PREPARED) {
downloadService.onNextStarted(nextPlaying);
+ nextPlayingURI = null;
}
downloadService.postDelayed(new Runnable() {
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
index 788f929e..a271c020 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
@@ -1198,6 +1198,7 @@ public class DownloadService extends Service {
postPlayCleanup();
setCurrentPlaying(nextPlaying, true);
setPlayerState(STARTED);
+ setNextPlayerState(IDLE);
}
public synchronized void pause() {