From b138ac8601e9ddc2c20adf2b7b508459e4f9e9e8 Mon Sep 17 00:00:00 2001 From: networkException Date: Thu, 26 May 2022 17:32:16 +0200 Subject: [PATCH] MessageImageVideoItem: Hide play button for autoplaying animated images This patch updates the logic checking whether to show the playContentView to not show it when an animated image message would autoplay its animation. Signed-off-by: networkException --- .../detail/timeline/item/MessageImageVideoItem.kt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageImageVideoItem.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageImageVideoItem.kt index 8485c40ef9..f3ab0e838b 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageImageVideoItem.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageImageVideoItem.kt @@ -34,6 +34,7 @@ import im.vector.app.features.home.room.detail.timeline.helper.ContentUploadStat import im.vector.app.features.home.room.detail.timeline.style.TimelineMessageLayout import im.vector.app.features.home.room.detail.timeline.style.granularRoundedCorners import im.vector.app.features.media.ImageContentRenderer +import org.matrix.android.sdk.api.session.room.model.message.MessageType @EpoxyModelClass(layout = R.layout.item_timeline_event_base) abstract class MessageImageVideoItem : AbsMessageItem() { @@ -80,7 +81,17 @@ abstract class MessageImageVideoItem : AbsMessageItem