commit 4d91c3b775f769a9d0759e7e556b111bddf3ddaf
parent d45fae89eadefe2af1970473bab16ce0e518f400
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date: Tue, 16 Apr 2024 21:02:16 +0200
fix: client bootstrap override
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/ui/ClientBootstrapOverride.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/ui/ClientBootstrapOverride.kt
@@ -6,14 +6,14 @@ import me.rhunk.snapenhance.core.features.FeatureLoadParams
import java.io.File
-class ClientBootstrapOverride : Feature("ClientBootstrapOverride", loadParams = FeatureLoadParams.ACTIVITY_CREATE_SYNC) {
+class ClientBootstrapOverride: Feature("ClientBootstrapOverride", loadParams = FeatureLoadParams.INIT_SYNC) {
private val clientBootstrapFolder by lazy { File(context.androidContext.filesDir, "client-bootstrap") }
private val appearanceStartupConfigFile by lazy { File(clientBootstrapFolder, "appearancestartupconfig") }
private val plusFile by lazy { File(clientBootstrapFolder, "plus") }
- override fun onActivityCreate() {
+ override fun init() {
val bootstrapOverrideConfig = context.config.userInterface.bootstrapOverride
if (!clientBootstrapFolder.exists() && (bootstrapOverrideConfig.appAppearance.getNullable() != null || bootstrapOverrideConfig.homeTab.getNullable() != null)) {