mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-29 18:09:21 +01:00
Make sure to clear old icon if loading fails
This commit is contained in:
parent
a349865af3
commit
88854ea6ba
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user