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);
|
views.setImageViewBitmap(R.id.imgvCover, icon);
|
||||||
} catch (Throwable tr) {
|
} catch (Throwable tr) {
|
||||||
Log.e(TAG, "Error loading the media icon for the widget", 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());
|
views.setTextViewText(R.id.txtvTitle, media.getEpisodeTitle());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user