[Android] Remove Context param for Util.setPicture
Jean-Baptiste Kempf
git at videolan.org
Mon Jul 7 03:57:55 CEST 2014
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jul 7 03:49:18 2014 +0200| [df6442ef542f2c2a6f253eeb5bfaa89c4ba09c10] | committer: Jean-Baptiste Kempf
Remove Context param for Util.setPicture
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=df6442ef542f2c2a6f253eeb5bfaa89c4ba09c10
---
vlc-android/src/org/videolan/libvlc/Media.java | 3 +--
vlc-android/src/org/videolan/vlc/Thumbnailer.java | 4 ++--
vlc-android/src/org/videolan/vlc/util/Util.java | 2 +-
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/vlc-android/src/org/videolan/libvlc/Media.java b/vlc-android/src/org/videolan/libvlc/Media.java
index d957662..ac9887c 100644
--- a/vlc-android/src/org/videolan/libvlc/Media.java
+++ b/vlc-android/src/org/videolan/libvlc/Media.java
@@ -25,7 +25,6 @@ import java.lang.reflect.Method;
import java.util.HashSet;
import java.util.Locale;
-import android.content.Context;
import android.graphics.Bitmap;
import android.util.Log;
@@ -337,7 +336,7 @@ public class Media implements Comparable<Media> {
/**
* Sets the raw picture object.
*
- * In VLC for Android, use {@link org.videolan.vlc.util.Util#setPicture(Context, Media, Bitmap)} instead.
+ * In VLC for Android, use {@link org.videolan.vlc.util.Util#setPicture(Media, Bitmap)} instead.
*
* @param p
*/
diff --git a/vlc-android/src/org/videolan/vlc/Thumbnailer.java b/vlc-android/src/org/videolan/vlc/Thumbnailer.java
index 2fe8853..11c57fb 100644
--- a/vlc-android/src/org/videolan/vlc/Thumbnailer.java
+++ b/vlc-android/src/org/videolan/vlc/Thumbnailer.java
@@ -168,7 +168,7 @@ public class Thumbnailer implements Runnable {
byte[] b = mLibVlc.getThumbnail(item.getLocation(), width, height);
if (b == null) {// We were not able to create a thumbnail for this item, store a dummy
- Util.setPicture(mContext, item, Bitmap.createBitmap(1, 1, Config.ARGB_8888));
+ Util.setPicture(item, Bitmap.createBitmap(1, 1, Config.ARGB_8888));
continue;
}
@@ -176,7 +176,7 @@ public class Thumbnailer implements Runnable {
Log.i(TAG, "Thumbnail created for " + item.getFileName());
- Util.setPicture(mContext, item, thumbnail);
+ Util.setPicture(item, thumbnail);
// Post to the file browser the new item.
mVideoGridFragment.setItemToUpdate(item);
diff --git a/vlc-android/src/org/videolan/vlc/util/Util.java b/vlc-android/src/org/videolan/vlc/util/Util.java
index f57d759..d42c413 100644
--- a/vlc-android/src/org/videolan/vlc/util/Util.java
+++ b/vlc-android/src/org/videolan/vlc/util/Util.java
@@ -398,7 +398,7 @@ public class Util {
}
}
- public static void setPicture(Context context, Media m, Bitmap p) {
+ public static void setPicture(Media m, Bitmap p) {
Log.d(TAG, "Setting new picture for " + m.getTitle());
try {
MediaDatabase.getInstance().updateMedia(
More information about the Android
mailing list