diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-09-24 06:08:17 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-09-24 06:08:17 -0700 |
commit | fe916d7fbfd3b99c11d8874ade375da89bccc9a3 (patch) | |
tree | 4b666713a7128fa9f7ec16fa9766cdd29339fb59 /src/github/daneren2005 | |
parent | 6fbfc9c748bd2893313ac6c4266ff34755bd4d2c (diff) | |
download | dsub-fe916d7fbfd3b99c11d8874ade375da89bccc9a3.tar.gz dsub-fe916d7fbfd3b99c11d8874ade375da89bccc9a3.tar.bz2 dsub-fe916d7fbfd3b99c11d8874ade375da89bccc9a3.zip |
Fix stop on remote play starting locally when it should be paused
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |