Skip to content

Commit c28e70f

Browse files
committed
Another attempt, now in code
1 parent 5e8430d commit c28e70f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/kotlin/io/element/android/x/MainActivity.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import androidx.compose.runtime.getValue
2121
import androidx.compose.runtime.remember
2222
import androidx.compose.ui.Modifier
2323
import androidx.compose.ui.platform.LocalUriHandler
24+
import androidx.compose.ui.platform.LocalView
2425
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
2526
import androidx.lifecycle.Lifecycle
2627
import androidx.lifecycle.lifecycleScope
@@ -58,6 +59,9 @@ class MainActivity : NodeActivity() {
5859
setupLockManagement(appBindings.lockScreenService(), appBindings.lockScreenEntryPoint())
5960
enableEdgeToEdge()
6061
setContent {
62+
// Try manually disabling forced dark mode here too
63+
LocalView.current.isForceDarkAllowed = false
64+
6165
MainContent(appBindings)
6266
}
6367
}

0 commit comments

Comments
 (0)