[Android] VideoPlayerActivity: missing cast

Jean-Baptiste Kempf git at videolan.org
Fri Jul 18 21:23:04 CEST 2014


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jul 18 21:22:47 2014 +0200| [a0d51ff4dd147d9703e44f92858058f121f34f95] | committer: Jean-Baptiste Kempf

VideoPlayerActivity: missing cast

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

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java        |    4 ++--
 1 file changed, 2 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 0f1d1f3..67e551a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1205,11 +1205,11 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
             //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)){
+                if (!mEnableBrightnessGesture || (int)mTouchX > (screen.widthPixels / 2)){
                     doVolumeTouch(y_changed);
                 }
                 // Brightness (Up or Down - Left side)
-                if (mEnableBrightnessGesture && mTouchX < (screen.widthPixels / 2)){
+                if (mEnableBrightnessGesture && (int)mTouchX < (screen.widthPixels / 2)){
                     doBrightnessTouch(y_changed);
                 }
                 // Extend the overlay for a little while, so that it doesn't



More information about the Android mailing list