[Android] Fix warning about Log

Jean-Baptiste Kempf git at videolan.org
Tue Mar 26 12:52:31 CET 2013


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Mar 26 12:52:20 2013 +0100| [00ff1404835caf21867e94c1c83b1a0f58a109c7] | committer: Jean-Baptiste Kempf

Fix warning about Log

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

 vlc-android/src/org/videolan/vlc/LibVLC.java |    1 -
 vlc-android/src/org/videolan/vlc/Util.java   |    5 +++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/LibVLC.java b/vlc-android/src/org/videolan/vlc/LibVLC.java
index 1551388..45dd41d 100644
--- a/vlc-android/src/org/videolan/vlc/LibVLC.java
+++ b/vlc-android/src/org/videolan/vlc/LibVLC.java
@@ -25,7 +25,6 @@ import java.util.Map;
 
 import org.videolan.vlc.gui.video.VideoPlayerActivity;
 
-import android.content.Context;
 import android.content.SharedPreferences;
 import android.os.Build;
 import android.preference.PreferenceManager;
diff --git a/vlc-android/src/org/videolan/vlc/Util.java b/vlc-android/src/org/videolan/vlc/Util.java
index 5753371..e481ca8 100644
--- a/vlc-android/src/org/videolan/vlc/Util.java
+++ b/vlc-android/src/org/videolan/vlc/Util.java
@@ -45,6 +45,7 @@ import android.os.Environment;
 import android.preference.PreferenceManager;
 import android.telephony.TelephonyManager;
 import android.util.DisplayMetrics;
+import android.util.Log;
 import android.util.TypedValue;
 import android.view.Display;
 import android.view.View;
@@ -274,8 +275,8 @@ public class Util {
         if(errorMsg != null) return isCompatible;
 
         if(VLCApplication.getAppResources() == null) {
-            Log.e("WARNING: Unable to get app resources; cannot check device ABI!");
-            Log.e("WARNING: Cannot guarantee correct ABI for this build (may crash)!");
+            Log.e(TAG, "WARNING: Unable to get app resources; cannot check device ABI!");
+            Log.e(TAG, "WARNING: Cannot guarantee correct ABI for this build (may crash)!");
             return true;
         }
 



More information about the Android mailing list