Commit 62559ca6 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Prevent NPE in background update

parent 45a6c34a
......@@ -152,6 +152,7 @@ public class TvUtil {
public void run() {
Bitmap cover = AudioUtil.readCoverBitmap(Uri.decode(artworkMrl), 512);
if (cover == null) return;
if (crop)
cover = BitmapUtil.centerCrop(cover, cover.getWidth(), cover.getWidth()*10/16);
final Bitmap blurred = UiTools.blurBitmap(cover, 10f);
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