aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-05-19 17:25:33 -0700
committerScott Jackson <daneren2005@gmail.com>2016-05-19 17:25:33 -0700
commit1109f27f3c39670a959338062cf52bfa9521a4e2 (patch)
treecfaf274720f4a0a583fe1eea02c94546ee4b86c0 /app
parent8229e8be4d0f454666454d88188367ab2e838947 (diff)
downloaddsub-1109f27f3c39670a959338062cf52bfa9521a4e2.tar.gz
dsub-1109f27f3c39670a959338062cf52bfa9521a4e2.tar.bz2
dsub-1109f27f3c39670a959338062cf52bfa9521a4e2.zip
Enable double click pause/play button to skip as well
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java
index 78b6c78e..5e9e04fc 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java
@@ -401,10 +401,10 @@ 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_HEADSETHOOK:
+ case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
if(lastPressTime < (System.currentTimeMillis() - 500)) {
lastPressTime = System.currentTimeMillis();
downloadService.togglePlayPause();