diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-03-08 10:37:19 -0800 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-03-08 10:37:19 -0800 |
commit | 853043b06fcfed651b0e4f8023875e7e72d27fb1 (patch) | |
tree | f18b39762b87ce0ab5bcc555c0a952f11f01b923 | |
parent | 8d6d21840f1eaa29018b4e3c0940b68d113b8f7f (diff) | |
download | dsub-853043b06fcfed651b0e4f8023875e7e72d27fb1.tar.gz dsub-853043b06fcfed651b0e4f8023875e7e72d27fb1.tar.bz2 dsub-853043b06fcfed651b0e4f8023875e7e72d27fb1.zip |
Don't call start on play event if it's already playing
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java index 6c9a84ad..765e216b 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java @@ -237,7 +237,9 @@ public class DownloadServiceLifecycleSupport { break; case RemoteControlClient.FLAG_KEY_MEDIA_PLAY: case KeyEvent.KEYCODE_MEDIA_PLAY: - downloadService.start(); + if(downloadService.getPlayerState() != PlayerState.STARTED) { + downloadService.start(); + } break; case RemoteControlClient.FLAG_KEY_MEDIA_PAUSE: case KeyEvent.KEYCODE_MEDIA_PAUSE: |