aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--subsonic-android/src/net/sourceforge/subsonic/androidapp/service/DownloadServiceLifecycleSupport.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/subsonic-android/src/net/sourceforge/subsonic/androidapp/service/DownloadServiceLifecycleSupport.java b/subsonic-android/src/net/sourceforge/subsonic/androidapp/service/DownloadServiceLifecycleSupport.java
index 2010a4a1..9de7f1b7 100644
--- a/subsonic-android/src/net/sourceforge/subsonic/androidapp/service/DownloadServiceLifecycleSupport.java
+++ b/subsonic-android/src/net/sourceforge/subsonic/androidapp/service/DownloadServiceLifecycleSupport.java
@@ -222,6 +222,11 @@ public class DownloadServiceLifecycleSupport {
case KeyEvent.KEYCODE_MEDIA_STOP:
downloadService.reset();
break;
+ case KeyEvent.KEYCODE_MEDIA_PLAY:
+ downloadService.play();
+ break;
+ case KeyEvent.KEYCODE_MEDIA_PAUSE:
+ downloadService.pause();
default:
break;
}