Commit 33f18bb4 authored by Geoffrey Métais's avatar Geoffrey Métais

Update deprecated call

parent e8297e6b
......@@ -32,6 +32,7 @@ import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.os.Handler;
import android.os.Looper;
import android.support.v4.view.ViewCompat;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
......@@ -160,7 +161,7 @@ public class AsyncImageLoader {
iv.setScaleType(ImageView.ScaleType.FIT_CENTER);
iv.setImageBitmap(bitmap);
} else if (target instanceof TextView) {
target.setBackgroundDrawable(new BitmapDrawable(VLCApplication.getAppResources(), bitmap));
ViewCompat.setBackground(target, new BitmapDrawable(VLCApplication.getAppResources(), bitmap));
((TextView) target).setText(null);
}
}
......
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