update the next track placeholder image on the main thread
This commit is contained in:
parent
87aacc9ac3
commit
ad3fd2d642
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue