[Android] Set variables private

Geoffrey Métais git at videolan.org
Mon Nov 6 12:04:07 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov  6 10:28:09 2017 +0100| [223f044e6088324f2556d506e44743eb745fde5a] | committer: Geoffrey Métais

Set variables private

> https://code.videolan.org/videolan/vlc-android/commit/223f044e6088324f2556d506e44743eb745fde5a
---

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 3b0352468..672dc229e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -28,7 +28,6 @@ import android.content.ServiceConnection;
 import android.database.Cursor;
 import android.os.Build;
 import android.os.Bundle;
-import android.os.Handler;
 import android.os.IBinder;
 import android.support.annotation.NonNull;
 import android.support.annotation.Nullable;
@@ -88,7 +87,7 @@ public class MainActivity extends ContentActivity implements FilterQueryProvider
 
     private static final int ACTIVITY_RESULT_PREFERENCES = 1;
     private static final int ACTIVITY_RESULT_OPEN = 2;
-    public static final int ACTIVITY_RESULT_SECONDARY = 3;
+    private static final int ACTIVITY_RESULT_SECONDARY = 3;
 
 
     private Medialibrary mMediaLibrary;
@@ -98,7 +97,7 @@ public class MainActivity extends ContentActivity implements FilterQueryProvider
     private ActionBarDrawerToggle mDrawerToggle;
 
     private int mCurrentFragmentId;
-    public Fragment mCurrentFragment = null;
+    private Fragment mCurrentFragment = null;
     private final SimpleArrayMap<String, WeakReference<Fragment>> mFragmentsStack = new SimpleArrayMap<>();
 
     private boolean mScanNeeded = false;



More information about the Android mailing list