[Android] AudioUtil: remove a context parameter
Jean-Baptiste Kempf
git at videolan.org
Sat May 23 20:19:59 CEST 2015
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat May 23 20:17:35 2015 +0200| [f58dc49b1ae75e5ec15d74bbdcc460d875bdce34] | committer: Jean-Baptiste Kempf
AudioUtil: remove a context parameter
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=f58dc49b1ae75e5ec15d74bbdcc460d875bdce34
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
index 47535e0..ed30b19 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
@@ -29,7 +29,6 @@ import android.graphics.Bitmap.CompressFormat;
import android.graphics.BitmapFactory;
import android.media.RingtoneManager;
import android.net.Uri;
-import android.os.Environment;
import android.provider.MediaStore;
import android.util.Log;
import android.widget.Toast;
@@ -219,7 +218,7 @@ public class AudioUtil {
return null;
}
- private static String getCoverFromFolder(Context context, MediaWrapper media) {
+ private static String getCoverFromFolder(MediaWrapper media) {
File f = LibVlcUtil.URItoFile(media.getLocation());
if (f != null && f.getParentFile() != null && f.getParentFile().listFiles() != null)
for (File s : f.getParentFile().listFiles()) {
@@ -274,7 +273,7 @@ public class AudioUtil {
// no found yet, looking in folder
if (coverPath == null || !(new File(coverPath)).exists())
- coverPath = getCoverFromFolder(context, media);
+ coverPath = getCoverFromFolder(media);
// try to get the cover from android MediaStore
if (coverPath == null || !(new File(coverPath)).exists())
More information about the Android
mailing list