File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
app/src/main/kotlin/io/element/android/x Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,13 @@ import androidx.compose.foundation.layout.Box
1616import androidx.compose.foundation.layout.fillMaxSize
1717import androidx.compose.runtime.Composable
1818import androidx.compose.runtime.CompositionLocalProvider
19+ import androidx.compose.runtime.DisposableEffect
1920import androidx.compose.runtime.collectAsState
2021import androidx.compose.runtime.getValue
2122import androidx.compose.runtime.remember
2223import androidx.compose.ui.Modifier
2324import androidx.compose.ui.platform.LocalUriHandler
25+ import androidx.compose.ui.platform.LocalView
2426import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
2527import androidx.lifecycle.Lifecycle
2628import androidx.lifecycle.lifecycleScope
@@ -58,6 +60,13 @@ class MainActivity : NodeActivity() {
5860 setupLockManagement(appBindings.lockScreenService(), appBindings.lockScreenEntryPoint())
5961 enableEdgeToEdge()
6062 setContent {
63+ // Try manually disabling forced dark mode here too
64+ val view = LocalView .current
65+ DisposableEffect (Unit ) {
66+ view.isForceDarkAllowed = false
67+ onDispose {}
68+ }
69+
6170 MainContent (appBindings)
6271 }
6372 }
You can’t perform that action at this time.
0 commit comments