aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-09-16 18:36:57 -0700
committerScott Jackson <daneren2005@gmail.com>2014-09-16 18:36:57 -0700
commitdd694493e7f516aee73a7dafdaab68f7c921b17c (patch)
tree8b956f76df3b9f4667c6a8b0030305fd4fa47093 /src
parentca0d8048bb62400780dbe814a18628ce5f86344d (diff)
downloaddsub-dd694493e7f516aee73a7dafdaab68f7c921b17c.tar.gz
dsub-dd694493e7f516aee73a7dafdaab68f7c921b17c.tar.bz2
dsub-dd694493e7f516aee73a7dafdaab68f7c921b17c.zip
Don't treat play_pause the same as headsethook
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java b/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java
index e2941fc9..668ca70a 100644
--- a/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java
+++ b/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java
@@ -285,9 +285,9 @@ public class DownloadServiceLifecycleSupport {
} else if(event.getAction() == KeyEvent.ACTION_UP) {
switch (event.getKeyCode()) {
case RemoteControlClient.FLAG_KEY_MEDIA_PLAY_PAUSE:
+ case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
downloadService.togglePlayPause();
break;
- case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
case KeyEvent.KEYCODE_HEADSETHOOK:
if(lastPressTime < (System.currentTimeMillis() - 500)) {
lastPressTime = System.currentTimeMillis();