chore: DEBUG 版本图标不再共存

This commit is contained in:
HuanCheng65 2023-10-04 01:30:20 +08:00
parent 047ebe4f2c
commit 6355feda8f
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
1 changed files with 2 additions and 3 deletions

View File

@ -110,9 +110,8 @@ class App : Application(), IApp, SketchFactory {
fun setIcon(
enableNewUi: Boolean = applicationMetaData.getBoolean("enable_new_ui") || appPreferences.enableNewUi,
keepOld: Boolean = BuildConfig.DEBUG
) {
setOldMainActivityEnabled(!enableNewUi || keepOld)
setOldMainActivityEnabled(!enableNewUi)
if (enableNewUi) AppIconUtil.setIcon()
else AppIconUtil.setIcon(LauncherIcons.DISABLE)
}
@ -136,7 +135,7 @@ class App : Application(), IApp, SketchFactory {
Analytics::class.java, Crashes::class.java, Distribute::class.java
)
}
setIcon(keepOld = BuildConfig.DEBUG || isSelfBuild)
setIcon()
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM)
ThemeUtils.init(ThemeDelegate)
registerActivityLifecycleCallbacks(ClipBoardLinkDetector)