diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-09-16 18:36:57 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-09-16 18:36:57 -0700 |
commit | dd694493e7f516aee73a7dafdaab68f7c921b17c (patch) | |
tree | 8b956f76df3b9f4667c6a8b0030305fd4fa47093 /src/github | |
parent | ca0d8048bb62400780dbe814a18628ce5f86344d (diff) | |
download | dsub-dd694493e7f516aee73a7dafdaab68f7c921b17c.tar.gz dsub-dd694493e7f516aee73a7dafdaab68f7c921b17c.tar.bz2 dsub-dd694493e7f516aee73a7dafdaab68f7c921b17c.zip |
Don't treat play_pause the same as headsethook
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java | 2 |
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(); |