[Android] Do not warn about hardcoding /sdcard

Jean-Baptiste Kempf git at videolan.org
Sat Jun 30 09:26:41 CEST 2012


android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jun 29 22:54:18 2012 +0200| [1ad411968dca2c86fc223a71e2ee6e66a1325c18] | committer: Jean-Baptiste Kempf

Do not warn about hardcoding /sdcard

The C code uses directly /sdcard

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=1ad411968dca2c86fc223a71e2ee6e66a1325c18
---

 vlc-android/src/org/videolan/vlc/AudioService.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index 73aed95..a1f4226 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -34,6 +34,7 @@ import org.videolan.vlc.interfaces.IAudioService;
 import org.videolan.vlc.interfaces.IAudioServiceCallback;
 import org.videolan.vlc.widget.VLCAppWidgetProvider;
 
+import android.annotation.SuppressLint;
 import android.app.Notification;
 import android.app.PendingIntent;
 import android.app.Service;
@@ -409,6 +410,7 @@ public class AudioService extends Service {
         mRepeating = RepeatType.values()[t];
     }
 
+    @SuppressLint("SdCardPath")
     private Bitmap getCover() {
         try {
             // try to get the cover from android MediaStore



More information about the Android mailing list