[Android] Code consistency
Jean-Baptiste Kempf
git at videolan.org
Mon Mar 25 13:39:02 CET 2013
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Mar 25 13:38:45 2013 +0100| [14b842f73f1bb8b1be4229c65f50480328a48ea4] | committer: Jean-Baptiste Kempf
Code consistency
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=14b842f73f1bb8b1be4229c65f50480328a48ea4
---
vlc-android/src/org/videolan/vlc/LibVLC.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/LibVLC.java b/vlc-android/src/org/videolan/vlc/LibVLC.java
index bc5c9ac..1551388 100644
--- a/vlc-android/src/org/videolan/vlc/LibVLC.java
+++ b/vlc-android/src/org/videolan/vlc/LibVLC.java
@@ -201,8 +201,7 @@ public class LibVLC {
Log.e(TAG, Util.getErrorMsg());
throw new LibVlcException();
}
- Context context = VLCApplication.getAppContext();
- SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(context);
+ SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(VLCApplication.getAppContext());
nativeInit(pref.getBoolean("enable_verbose_mode", true));
setEventManager(EventManager.getInstance());
mIsInitialized = true;
More information about the Android
mailing list