From 2b681a43c8f09dc94cd6747e64203af3d7225d6d Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Fri, 20 May 2022 12:16:35 +0300 Subject: [PATCH] Use current drawable while loading new map image. --- .../home/room/detail/timeline/item/AbsMessageLocationItem.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageLocationItem.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageLocationItem.kt index f7146c24e9..e7823845fa 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageLocationItem.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageLocationItem.kt @@ -75,6 +75,7 @@ abstract class AbsMessageLocationItem : AbsMe GlideApp.with(holder.staticMapImageView) .load(location) .apply(RequestOptions.centerCropTransform()) + .placeholder(holder.staticMapImageView.drawable) .listener(object : RequestListener { override fun onLoadFailed(e: GlideException?, model: Any?,