From fe916d7fbfd3b99c11d8874ade375da89bccc9a3 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 24 Sep 2014 06:08:17 -0700 Subject: Fix stop on remote play starting locally when it should be paused --- src/github/daneren2005/dsub/service/DownloadService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/github') diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 3e3de31d..798b4541 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -959,6 +959,7 @@ public class DownloadService extends Service { if (playerState == STARTED) { if (remoteState != RemoteControlState.LOCAL) { remoteController.stop(); + setPlayerState(STOPPED); handler.post(new Runnable() { @Override public void run() { @@ -967,8 +968,8 @@ public class DownloadService extends Service { }); } else { mediaPlayer.pause(); + setPlayerState(STOPPED); } - setPlayerState(STOPPED); } else if(playerState == PAUSED) { setPlayerState(STOPPED); } -- cgit v1.2.3