Use the new UI entirely for the release build

This commit is contained in:
世界
2025-12-13 20:06:18 +08:00
parent e7892096cc
commit dcde0bd5c9
4 changed files with 52 additions and 51 deletions

View File

@@ -12,16 +12,12 @@ class LauncherActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val useComposeUI =
runBlocking {
Settings.useComposeUI
}
val targetActivity =
if (useComposeUI) {
ComposeActivity::class.java
if (BuildConfig.DEBUG) {
val useComposeUI = runBlocking { Settings.useComposeUI }
if (useComposeUI) ComposeActivity::class.java else MainActivity::class.java
} else {
MainActivity::class.java
ComposeActivity::class.java
}
val launchIntent =