diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-05-02 14:02:25 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-05-02 14:02:25 -0700 |
commit | d91b8d023e1e27e6c96fa9051a39e7e15b922402 (patch) | |
tree | 57282fef504971410ada55f6b63fe5b53be45701 | |
parent | e954d2575a7a51b8792c7c97f2b1c3e94edaca2e (diff) | |
download | dsub-d91b8d023e1e27e6c96fa9051a39e7e15b922402.tar.gz dsub-d91b8d023e1e27e6c96fa9051a39e7e15b922402.tar.bz2 dsub-d91b8d023e1e27e6c96fa9051a39e7e15b922402.zip |
Fix hardware players sending multiple ACTION_DOWN events
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java | 2 |
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 c9f92f41..64da9a13 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java +++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java @@ -366,7 +366,7 @@ public class DownloadServiceLifecycleSupport { } private void handleKeyEvent(KeyEvent event) { - if(event.getAction() == KeyEvent.ACTION_DOWN) { + if(event.getAction() == KeyEvent.ACTION_DOWN && event.getRepeatCount() == 0) { switch (event.getKeyCode()) { case RemoteControlClient.FLAG_KEY_MEDIA_PLAY_PAUSE: case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE: |