everysync: fix white background behind status bar when offline
- Commit
ff1fae8835a177904a9e1acbf3a48858325497c9- Author
- Vayun Mathur <[email protected]>
- When
- 2026-08-11 04:25 UTC (3 months ago)
- Parents
73c96c1
Diff
everysync/src/main/java/com/vayunmathur/everysync/MainActivity.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/MainActivity.kt b/everysync/src/main/java/com/vayunmathur/everysync/MainActivity.ktindex 5179f4a98b..93eaa9cfab 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/MainActivity.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/MainActivity.kt@@ -5,7 +5,12 @@ import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.activity.enableEdgeToEdge import androidx.activity.viewModels+import androidx.compose.foundation.background+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable+import androidx.compose.ui.Modifier import com.vayunmathur.everysync.ui.AccountDetailScreen import com.vayunmathur.everysync.ui.AccountsScreen import com.vayunmathur.everysync.ui.AddAccountScreen@@ -30,8 +35,13 @@ class MainActivity : ComponentActivity() { enableEdgeToEdge() setContent { DynamicTheme {- OfflineAware {- Navigation(viewModel)+ // Paint the theme background behind everything (incl. the status bar strip the+ // offline banner leaves transparent) so no white window background shows through+ // when offline. See issue #488.+ Box(Modifier.fillMaxSize().background(MaterialTheme.colorScheme.background)) {+ OfflineAware {+ Navigation(viewModel)+ } } } }