[Android] VideoPlayerActivity : replace tab by space

Alexandre Perraud git at videolan.org
Tue Oct 21 17:44:12 CEST 2014


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Tue Oct 21 17:32:46 2014 +0200| [371dcf3ecc13ecb767272d67ba68aa786e2035fc] | committer: Jean-Baptiste Kempf

VideoPlayerActivity : replace tab by space

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 .../vlc/gui/video/VideoPlayerActivity.java         |   58 ++++++++++----------
 1 file changed, 29 insertions(+), 29 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 61c1493..38c1946 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -703,35 +703,35 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
     @TargetApi(12) //only active for Android 3.1+
     public boolean dispatchGenericMotionEvent(MotionEvent event){
 
-		InputDevice mInputDevice = event.getDevice();
-
-		float x = AndroidDevices.getCenteredAxis(event, mInputDevice,
-				MotionEvent.AXIS_X);
-		float y = AndroidDevices.getCenteredAxis(event, mInputDevice,
-				MotionEvent.AXIS_Y);
-		float z = AndroidDevices.getCenteredAxis(event, mInputDevice,
-				MotionEvent.AXIS_Z);
-		float rz = AndroidDevices.getCenteredAxis(event, mInputDevice,
-				MotionEvent.AXIS_RZ);
-
-		if (System.currentTimeMillis() - mLastMove > JOYSTICK_INPUT_DELAY){
-			if (Math.abs(x) > 0.3){
-				seek(x > 0.0f ? 10000 : -10000);
-				mLastMove = System.currentTimeMillis();
-			} else if (Math.abs(y) > 0.3){
-				if (mIsFirstBrightnessGesture)
-					initBrightnessTouch();
-				changeBrightness(-y/10f);
-				mLastMove = System.currentTimeMillis();
-			} else if (Math.abs(rz) > 0.3){
-				mVol = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);
-				int delta = -(int) ((rz / 7) * mAudioMax);
-				int vol = (int) Math.min(Math.max(mVol + delta, 0), mAudioMax);
-				setAudioVolume(vol);
-				mLastMove = System.currentTimeMillis();
-			}
-		}
-		return true;
+        InputDevice mInputDevice = event.getDevice();
+
+        float x = AndroidDevices.getCenteredAxis(event, mInputDevice,
+                MotionEvent.AXIS_X);
+        float y = AndroidDevices.getCenteredAxis(event, mInputDevice,
+                MotionEvent.AXIS_Y);
+        float z = AndroidDevices.getCenteredAxis(event, mInputDevice,
+                MotionEvent.AXIS_Z);
+        float rz = AndroidDevices.getCenteredAxis(event, mInputDevice,
+                MotionEvent.AXIS_RZ);
+
+        if (System.currentTimeMillis() - mLastMove > JOYSTICK_INPUT_DELAY){
+            if (Math.abs(x) > 0.3){
+                seek(x > 0.0f ? 10000 : -10000);
+                mLastMove = System.currentTimeMillis();
+            } else if (Math.abs(y) > 0.3){
+                if (mIsFirstBrightnessGesture)
+                    initBrightnessTouch();
+                changeBrightness(-y/10f);
+                mLastMove = System.currentTimeMillis();
+            } else if (Math.abs(rz) > 0.3){
+                mVol = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);
+                int delta = -(int) ((rz / 7) * mAudioMax);
+                int vol = (int) Math.min(Math.max(mVol + delta, 0), mAudioMax);
+                setAudioVolume(vol);
+                mLastMove = System.currentTimeMillis();
+            }
+        }
+        return true;
     }
 
     @Override



More information about the Android mailing list