Skip to content
Snippets Groups Projects
Commit 33f18bb4 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Update deprecated call

parent e8297e6b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment