[Android] Secondary Display : Disable volume and brightness gesture

Alexandre Perraud git at videolan.org
Tue May 6 11:54:03 CEST 2014


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Mon May  5 15:09:39 2014 +0200| [c56499d581dc83dd820fadb9f8deb4873895926c] | committer: Adrien Maglo

Secondary Display : Disable volume and brightness gesture

Signed-off-by: Adrien Maglo <magsoft at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c56499d581dc83dd820fadb9f8deb4873895926c
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java       |    5 +++--
 1 file changed, 3 insertions(+), 2 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 9010ed2..33cb279 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1151,8 +1151,9 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
             break;
 
         case MotionEvent.ACTION_MOVE:
-            // No volume/brightness action if coef < 2
-            if (coef > 2) {
+            // No volume/brightness action if coef < 2 or a secondary display is connected
+            //TODO : Volume action when a secondary display is connected
+            if (coef > 2 && mPresentation == null) {
                 // Volume (Up or Down - Right side)
                 if (!mEnableBrightnessGesture || mTouchX > (screen.widthPixels / 2)){
                     doVolumeTouch(y_changed);



More information about the Android mailing list