aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-03-08 10:37:19 -0800
committerdaneren2005 <daneren2005@gmail.com>2013-03-08 10:37:19 -0800
commit853043b06fcfed651b0e4f8023875e7e72d27fb1 (patch)
treef18b39762b87ce0ab5bcc555c0a952f11f01b923 /subsonic-android/src
parent8d6d21840f1eaa29018b4e3c0940b68d113b8f7f (diff)
downloaddsub-853043b06fcfed651b0e4f8023875e7e72d27fb1.tar.gz
dsub-853043b06fcfed651b0e4f8023875e7e72d27fb1.tar.bz2
dsub-853043b06fcfed651b0e4f8023875e7e72d27fb1.zip
Don't call start on play event if it's already playing
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java4
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: