From a52d20eeff831170514e2311d3c00d9bfb0c4be8 Mon Sep 17 00:00:00 2001 From: Valere Date: Tue, 16 Mar 2021 15:26:06 +0100 Subject: [PATCH] Regression: Video will not play upon tap --- CHANGES.md | 1 + .../app/features/media/VectorAttachmentViewerActivity.kt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index aad7773511..8e70e8f78f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,7 @@ Improvements 🙌: Bugfix 🐛: - Add option to cancel stuck messages at bottom of timeline see #516 - Ensure message are decrypted in the room list after a clear cache + - Regression: Video will not play upon tap, but only after swipe #2928 Translations 🗣: - diff --git a/vector/src/main/java/im/vector/app/features/media/VectorAttachmentViewerActivity.kt b/vector/src/main/java/im/vector/app/features/media/VectorAttachmentViewerActivity.kt index 158dbfdaae..c632a008ce 100644 --- a/vector/src/main/java/im/vector/app/features/media/VectorAttachmentViewerActivity.kt +++ b/vector/src/main/java/im/vector/app/features/media/VectorAttachmentViewerActivity.kt @@ -29,7 +29,6 @@ import androidx.core.view.ViewCompat import androidx.core.view.isInvisible import androidx.core.view.isVisible import androidx.lifecycle.Lifecycle -import androidx.lifecycle.lifecycleScope import androidx.transition.Transition import im.vector.app.R import im.vector.app.core.di.ActiveSessionHolder @@ -132,7 +131,7 @@ class VectorAttachmentViewerActivity : AttachmentViewerActivity(), BaseAttachmen if (savedInstanceState == null) { pager2.setCurrentItem(initialIndex, false) // The page change listener is not notified of the change... - lifecycleScope.launchWhenResumed { + pager2.post { onSelectedPositionChanged(initialIndex) } }