From 78207d48ba8032103925cc13ed0f180b0a554ede Mon Sep 17 00:00:00 2001 From: FourTOne5 <59261191+FourTOne5@users.noreply.github.com> Date: Thu, 28 Apr 2022 05:54:51 -0700 Subject: [PATCH] Center `CurcularProgressIndicator` in `LoadingScreen` (#7032) * Center `CurcularProgressIndicator` in `LoadingScreen` * Fix Import and move modifier to top --- .../java/eu/kanade/presentation/components/LoadingScreen.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/presentation/components/LoadingScreen.kt b/app/src/main/java/eu/kanade/presentation/components/LoadingScreen.kt index 6097ad4714..6c461c04e7 100644 --- a/app/src/main/java/eu/kanade/presentation/components/LoadingScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/components/LoadingScreen.kt @@ -5,12 +5,16 @@ import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.size import androidx.compose.material3.CircularProgressIndicator import androidx.compose.runtime.Composable +import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp @Composable fun LoadingScreen() { - Box(modifier = Modifier.fillMaxSize()) { + Box( + modifier = Modifier.fillMaxSize(), + contentAlignment = Alignment.Center, + ) { CircularProgressIndicator(modifier = Modifier.size(64.dp)) } }