Merge pull request #3006 from vector-im/feature/bca/fix_video_wont_play

Regression: Video will not play upon tap
This commit is contained in:
Benoit Marty 2021-03-16 18:32:20 +01:00 committed by GitHub
commit 5ce984ce3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -11,6 +11,7 @@ Improvements 🙌:
Bugfix 🐛: Bugfix 🐛:
- Add option to cancel stuck messages at bottom of timeline see #516 - Add option to cancel stuck messages at bottom of timeline see #516
- Ensure message are decrypted in the room list after a clear cache - Ensure message are decrypted in the room list after a clear cache
- Regression: Video will not play upon tap, but only after swipe #2928
- Cross signing now works with servers with an explicit port in the servername - Cross signing now works with servers with an explicit port in the servername
Translations 🗣: Translations 🗣:

View File

@ -29,7 +29,6 @@ import androidx.core.view.ViewCompat
import androidx.core.view.isInvisible import androidx.core.view.isInvisible
import androidx.core.view.isVisible import androidx.core.view.isVisible
import androidx.lifecycle.Lifecycle import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import androidx.transition.Transition import androidx.transition.Transition
import im.vector.app.R import im.vector.app.R
import im.vector.app.core.di.ActiveSessionHolder import im.vector.app.core.di.ActiveSessionHolder
@ -132,7 +131,7 @@ class VectorAttachmentViewerActivity : AttachmentViewerActivity(), BaseAttachmen
if (savedInstanceState == null) { if (savedInstanceState == null) {
pager2.setCurrentItem(initialIndex, false) pager2.setCurrentItem(initialIndex, false)
// The page change listener is not notified of the change... // The page change listener is not notified of the change...
lifecycleScope.launchWhenResumed { pager2.post {
onSelectedPositionChanged(initialIndex) onSelectedPositionChanged(initialIndex)
} }
} }