[Android] Code cleaning

Geoffrey Métais git at videolan.org
Tue Sep 12 13:46:14 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Sep 12 13:35:44 2017 +0200| [6bcf9f4e94bda7c531564b063655eeb69cf858a4] | committer: Geoffrey Métais

Code cleaning

> https://code.videolan.org/videolan/vlc-android/commit/6bcf9f4e94bda7c531564b063655eeb69cf858a4
---

 vlc-android/src/org/videolan/vlc/util/AndroidDevices.java | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/util/AndroidDevices.java b/vlc-android/src/org/videolan/vlc/util/AndroidDevices.java
index 195df2898..3ff9962de 100644
--- a/vlc-android/src/org/videolan/vlc/util/AndroidDevices.java
+++ b/vlc-android/src/org/videolan/vlc/util/AndroidDevices.java
@@ -135,10 +135,10 @@ public class AndroidDevices {
             String line;
             while ((line = bufReader.readLine()) != null) {
 
-                StringTokenizer tokens = new StringTokenizer(line, " ");
-                String device = tokens.nextToken();
-                String mountpoint = tokens.nextToken();
-                String type = tokens.nextToken();
+                final StringTokenizer tokens = new StringTokenizer(line, " ");
+                final String device = tokens.nextToken();
+                final String mountpoint = tokens.nextToken();
+                final String type = tokens.nextToken();
 
                 // skip if already in list or if type/mountpoint is blacklisted
                 if (list.contains(mountpoint) || typeBL.contains(type) || Strings.startsWith(mountBL, mountpoint))
@@ -184,8 +184,7 @@ public class AndroidDevices {
     }
 
     @TargetApi(VERSION_CODES.HONEYCOMB_MR1)
-    public static float getCenteredAxis(MotionEvent event,
-                                        InputDevice device, int axis) {
+    public static float getCenteredAxis(MotionEvent event, InputDevice device, int axis) {
         final InputDevice.MotionRange range =
                 device.getMotionRange(axis, event.getSource());
 



More information about the Android mailing list