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

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) {