Make sure to clear old icon if loading fails

This commit is contained in:
ByteHamster 2019-05-28 16:23:46 +02:00
parent a349865af3
commit 88854ea6ba

View File

@ -130,6 +130,7 @@ public class PlayerWidgetJobService extends SafeJobIntentService {
views.setImageViewBitmap(R.id.imgvCover, icon);
} catch (Throwable tr) {
Log.e(TAG, "Error loading the media icon for the widget", tr);
views.setImageViewResource(R.id.imgvCover, R.mipmap.ic_launcher_foreground);
}
views.setTextViewText(R.id.txtvTitle, media.getEpisodeTitle());