make ui visibility be animated

This commit is contained in:
Christian Schabesberger 2024-07-23 18:11:43 +02:00
parent 6da8b12ec2
commit 61df2e3c72
1 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@ package net.newpipe.newplayer.ui
import android.view.MotionEvent
import androidx.activity.compose.BackHandler
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
@ -122,7 +123,8 @@ fun VideoPlayerControllerUI(
uiVissible = uiVissible,
fullscreen = fullscreen
)
} else {
}
AnimatedVisibility(uiVissible){
Surface(
modifier = Modifier.fillMaxSize(), color = Color(0x75000000)
) {