mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 18:35:40 +03:00
Merge pull request #6103 from vector-im/feature/ons/fix_live_location_flickering
Glide - Use current drawable while loading new static map image
This commit is contained in:
commit
109b381e2e
2 changed files with 2 additions and 0 deletions
1
changelog.d/6103.bugfix
Normal file
1
changelog.d/6103.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Glide - Use current drawable while loading new static map image
|
|
@ -75,6 +75,7 @@ abstract class AbsMessageLocationItem<H : AbsMessageLocationItem.Holder> : AbsMe
|
|||
GlideApp.with(holder.staticMapImageView)
|
||||
.load(location)
|
||||
.apply(RequestOptions.centerCropTransform())
|
||||
.placeholder(holder.staticMapImageView.drawable)
|
||||
.listener(object : RequestListener<Drawable> {
|
||||
override fun onLoadFailed(e: GlideException?,
|
||||
model: Any?,
|
||||
|
|
Loading…
Reference in a new issue