[Android] Disable Brightness gestures for ChromeOS

Jean-Baptiste Kempf git at videolan.org
Tue Nov 24 16:51:20 CET 2015


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Nov 24 16:51:01 2015 +0100| [f87560d1fb8c939e63456cd952b59fc67030e6f2] | committer: Jean-Baptiste Kempf

Disable Brightness gestures for ChromeOS

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

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java        |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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 8560d2b..c81357b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -383,7 +383,9 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         mVerticalBar = findViewById(R.id.verticalbar);
         mVerticalBarProgress = findViewById(R.id.verticalbar_progress);
 
-        mEnableBrightnessGesture = mSettings.getBoolean("enable_brightness_gesture", true);
+        mEnableBrightnessGesture = !TextUtils.equals(BuildConfig.FLAVOR_target, "chrome") &&
+                mSettings.getBoolean("enable_brightness_gesture", true);
+
         mScreenOrientation = Integer.valueOf(
                 mSettings.getString("screen_orientation_value", "4" /*SCREEN_ORIENTATION_SENSOR*/));
 



More information about the Android mailing list