android: reduce video player opacity in the gallery

This commit is contained in:
Evgeny Poberezkin
2023-03-31 13:59:40 +01:00
parent 9b627534f5
commit ec61a7fc51

View File

@@ -207,7 +207,7 @@ private fun VideoView(modifier: Modifier, uri: Uri, defaultPreview: Bitmap, curr
setShowSubtitleButton(false)
setShowVrButton(false)
controllerAutoShow = false
findViewById<View>(com.google.android.exoplayer2.R.id.exo_controls_background).setBackgroundColor(Color.Black.copy(alpha = 0.4f).toArgb())
findViewById<View>(com.google.android.exoplayer2.R.id.exo_controls_background).setBackgroundColor(Color.Black.copy(alpha = 0.3f).toArgb())
findViewById<View>(com.google.android.exoplayer2.R.id.exo_settings).isVisible = false
this.player = player.player
}