diff --git a/android/Omnivore/app/src/main/java/app/omnivore/omnivore/feature/reader/WebReaderLoadingContainer.kt b/android/Omnivore/app/src/main/java/app/omnivore/omnivore/feature/reader/WebReaderLoadingContainer.kt index e58b5f0cb..3a80aeaf6 100644 --- a/android/Omnivore/app/src/main/java/app/omnivore/omnivore/feature/reader/WebReaderLoadingContainer.kt +++ b/android/Omnivore/app/src/main/java/app/omnivore/omnivore/feature/reader/WebReaderLoadingContainer.kt @@ -6,6 +6,7 @@ import android.view.View import androidx.activity.ComponentActivity import androidx.activity.compose.LocalOnBackPressedDispatcherOwner import androidx.activity.compose.setContent +import androidx.activity.enableEdgeToEdge import androidx.activity.viewModels import androidx.compose.foundation.background import androidx.compose.foundation.isSystemInDarkTheme @@ -78,12 +79,14 @@ class WebReaderLoadingContainerActivity : ComponentActivity() { viewModel.loadItem(slug = slug, requestID = requestID) + enableEdgeToEdge() + setContent { OmnivoreTheme { Box( modifier = Modifier - .fillMaxSize() - .background(color = Color.Black) + .fillMaxSize() + .background(color = if (isSystemInDarkTheme()) Color.Black else Color.White) ) { if (viewModel.hasFetchError.value == true) { Text(stringResource(R.string.web_reader_loading_container_error_msg)) @@ -499,11 +502,11 @@ fun ReaderTopAppBar( fun BottomSheetUI(content: @Composable () -> Unit) { Box( modifier = Modifier - .wrapContentHeight() - .fillMaxWidth() - .clip(RoundedCornerShape(topEnd = 20.dp, topStart = 20.dp)) - .background(Color.White) - .statusBarsPadding() + .wrapContentHeight() + .fillMaxWidth() + .clip(RoundedCornerShape(topEnd = 20.dp, topStart = 20.dp)) + .background(Color.White) + .statusBarsPadding() ) { Scaffold { paddingValues -> Box(modifier = Modifier.fillMaxSize()) {