From 54c8b28f9ddefd189a0834a9f631da5221c87f21 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Fri, 27 Jan 2023 21:52:29 +0100 Subject: [PATCH] Ensure the media description is visible over the video (#3210) Fixes https://github.com/tuskyapp/Tusky/issues/1587 --- .../java/com/keylesspalace/tusky/fragment/ViewVideoFragment.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/ViewVideoFragment.kt b/app/src/main/java/com/keylesspalace/tusky/fragment/ViewVideoFragment.kt index 566aa647..b3c0246d 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/ViewVideoFragment.kt +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/ViewVideoFragment.kt @@ -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) {