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

TV background manager: add nullity checks

parent da3ea12c
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,7 @@ public class TvUtil {
VLCApplication.runBackground(new Runnable() {
@Override
public void run() {
if (bm == null) return;
Bitmap cover = AudioUtil.readCoverBitmap(Uri.decode(artworkMrl), 512);
if (cover == null) return;
if (crop)
......@@ -159,6 +160,7 @@ public class TvUtil {
VLCApplication.runOnMainThread(new Runnable() {
@Override
public void run() {
if (bm == null) return;
bm.setColor(0);
bm.setDrawable(new BitmapDrawable(VLCApplication.getAppResources(), blurred));
}
......
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