Use current drawable while loading new map image.

This commit is contained in:
Onuray Sahin 2022-05-20 12:16:35 +03:00
parent da764d7c9a
commit 2b681a43c8

View file

@ -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?,