Commit df6442ef authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Remove Context param for Util.setPicture

parent 4776d859
......@@ -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
*/
......
......@@ -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);
......
......@@ -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(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment