From bb146f143360763ebdb1481958d11bfd808b7326 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 6 Jul 2012 20:44:57 -0700 Subject: Better Media Key Event handling --- .../subsonic/androidapp/service/DownloadServiceLifecycleSupport.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'subsonic-android/src/net') 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; } -- cgit v1.2.3