make ui visibility be animated
This commit is contained in:
parent
6da8b12ec2
commit
61df2e3c72
|
@ -22,6 +22,7 @@ package net.newpipe.newplayer.ui
|
||||||
|
|
||||||
import android.view.MotionEvent
|
import android.view.MotionEvent
|
||||||
import androidx.activity.compose.BackHandler
|
import androidx.activity.compose.BackHandler
|
||||||
|
import androidx.compose.animation.AnimatedVisibility
|
||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
import androidx.compose.foundation.clickable
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
|
@ -122,7 +123,8 @@ fun VideoPlayerControllerUI(
|
||||||
uiVissible = uiVissible,
|
uiVissible = uiVissible,
|
||||||
fullscreen = fullscreen
|
fullscreen = fullscreen
|
||||||
)
|
)
|
||||||
} else {
|
}
|
||||||
|
AnimatedVisibility(uiVissible){
|
||||||
Surface(
|
Surface(
|
||||||
modifier = Modifier.fillMaxSize(), color = Color(0x75000000)
|
modifier = Modifier.fillMaxSize(), color = Color(0x75000000)
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue