update the next track placeholder image on the main thread

This commit is contained in:
tibbi 2021-03-02 14:24:20 +01:00
parent 87aacc9ac3
commit ad3fd2d642

View file

@ -188,7 +188,9 @@ class TrackActivity : SimpleActivity() {
.apply(options)
.listener(object : RequestListener<Drawable> {
override fun onLoadFailed(e: GlideException?, model: Any?, target: Target<Drawable>?, isFirstResource: Boolean): Boolean {
next_track_image.setImageDrawable(nextTrackPlaceholder)
runOnUiThread {
next_track_image.setImageDrawable(nextTrackPlaceholder)
}
return true
}