diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-07-06 20:44:57 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-07-06 20:44:57 -0700 |
commit | bb146f143360763ebdb1481958d11bfd808b7326 (patch) | |
tree | 3b5dff6457f3f6cdd57f1691fa913e9cd461c2c2 /subsonic-android | |
parent | 28af3222ac09cf1b4118fa1a9f646d6ad9622e9d (diff) | |
download | dsub-bb146f143360763ebdb1481958d11bfd808b7326.tar.gz dsub-bb146f143360763ebdb1481958d11bfd808b7326.tar.bz2 dsub-bb146f143360763ebdb1481958d11bfd808b7326.zip |
Better Media Key Event handling
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/net/sourceforge/subsonic/androidapp/service/DownloadServiceLifecycleSupport.java | 5 |
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; } |