Ensure the media description is visible over the video (#3210)

Fixes https://github.com/tuskyapp/Tusky/issues/1587
This commit is contained in:
Nik Clayton 2023-01-27 21:52:29 +01:00 committed by GitHub
parent 387c1a4404
commit 54c8b28f9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,9 @@ class ViewVideoFragment : ViewMediaFragment() {
binding.mediaDescription.visible(showingDescription)
binding.mediaDescription.movementMethod = ScrollingMovementMethod()
// Ensure the description is visible over the video
binding.mediaDescription.elevation = binding.videoView.elevation + 1
binding.videoView.transitionName = url
binding.videoView.setVideoPath(url)
mediaController = object : MediaController(mediaActivity) {