mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-06-12 13:17:42 +02:00
fix(core): client bootstrap override
This commit is contained in:
@ -16,6 +16,10 @@ class ClientBootstrapOverride : Feature("ClientBootstrapOverride", loadParams =
|
||||
override fun onActivityCreate() {
|
||||
val bootstrapOverrideConfig = context.config.userInterface.bootstrapOverride
|
||||
|
||||
if (!clientBootstrapFolder.exists() && (bootstrapOverrideConfig.appAppearance.getNullable() != null || bootstrapOverrideConfig.homeTab.getNullable() != null)) {
|
||||
clientBootstrapFolder.mkdirs()
|
||||
}
|
||||
|
||||
bootstrapOverrideConfig.appAppearance.getNullable()?.also { appearance ->
|
||||
val state = when (appearance) {
|
||||
"always_light" -> 0
|
||||
|
Reference in New Issue
Block a user