[Android] Cancel mute with volume keys
Geoffrey Métais
git at videolan.org
Fri Oct 23 16:41:59 CEST 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Oct 23 16:41:23 2015 +0200| [b5510b2422a3e939dd994f51333357a93146b2eb] | committer: Geoffrey Métais
Cancel mute with volume keys
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=b5510b2422a3e939dd994f51333357a93146b2eb
---
.../org/videolan/vlc/gui/video/VideoPlayerActivity.java | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 839a378..3cf8209 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1056,16 +1056,23 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
return super.onKeyDown(keyCode, event);
case KeyEvent.KEYCODE_J:
delayAudio(-50000l);
- break;
+ return true;
case KeyEvent.KEYCODE_K:
delayAudio(50000l);
- break;
+ return true;
case KeyEvent.KEYCODE_G:
delaySubs(-50000l);
- break;
+ return true;
case KeyEvent.KEYCODE_H:
delaySubs(50000l);
- break;
+ return true;
+ case KeyEvent.KEYCODE_VOLUME_DOWN:
+ case KeyEvent.KEYCODE_VOLUME_UP:
+ if (mMute) {
+ updateMute();
+ return true;
+ } else
+ return false;
}
return super.onKeyDown(keyCode, event);
}
More information about the Android
mailing list