From 2b681a43c8f09dc94cd6747e64203af3d7225d6d Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Fri, 20 May 2022 12:16:35 +0300 Subject: [PATCH 1/2] 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?, From 468cc30019533cafb059f18ee43b295611aabd43 Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Fri, 20 May 2022 12:22:24 +0300 Subject: [PATCH 2/2] Changelog added. --- changelog.d/6103.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/6103.bugfix diff --git a/changelog.d/6103.bugfix b/changelog.d/6103.bugfix new file mode 100644 index 0000000000..12e6836460 --- /dev/null +++ b/changelog.d/6103.bugfix @@ -0,0 +1 @@ +Glide - Use current drawable while loading new static map image