Skip to content

Commit b3e51c0

Browse files
fix: player control invisible when loading
1 parent 1461c47 commit b3e51c0

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

android/src/main/kotlin/project/pipepipe/app/ui/component/player/PlayerOverlays.kt

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,12 @@ fun PlayerOverlays(
5757
) {
5858
Box(modifier = modifier, contentAlignment = Alignment.Center) {
5959
if (isLoading) {
60-
Box(
60+
CircularProgressIndicator(
61+
color = Color.White,
6162
modifier = Modifier
62-
.fillMaxSize()
63-
.background(Color.Black),
64-
contentAlignment = Alignment.Center
65-
) {
66-
CircularProgressIndicator(
67-
color = Color.White,
68-
modifier = Modifier.size(48.dp)
69-
)
70-
}
63+
.size(48.dp)
64+
.align(Alignment.Center)
65+
)
7166
}
7267

7368
AnimatedVisibility(

0 commit comments

Comments
 (0)