fix Android

This commit is contained in:
Avently
2024-05-09 22:26:56 +07:00
parent 2b8987f55d
commit 378fb5f82f
3 changed files with 4 additions and 3 deletions
@@ -64,9 +64,9 @@ class SimplexApp: Application(), LifecycleEventObserver {
}
}
context = this
runMigrations()
initHaskell()
initMultiplatform()
runMigrations()
tmpDir.deleteRecursively()
tmpDir.mkdir()
@@ -42,7 +42,8 @@ object ThemeManager {
DefaultTheme.SIMPLEX.themeName -> ActiveTheme(DefaultTheme.SIMPLEX.themeName, DefaultTheme.SIMPLEX, SimplexColorPalette, SimplexColorPaletteApp)
else -> ActiveTheme(DefaultTheme.LIGHT.themeName, DefaultTheme.LIGHT, LightColorPalette, LightColorPaletteApp)
}
if (theme == null && perUserTheme == null) {
if (theme == null && perUserTheme == null && perChatTheme == null) {
return ActiveTheme(themeName, baseTheme.base, baseTheme.colors, baseTheme.appColors, baseTheme.wallpaper)
}
val wallpaperTheme = when {
@@ -17,8 +17,8 @@ import kotlinx.coroutines.*
import java.io.File
fun main() {
runMigrations()
initHaskell()
runMigrations()
initApp()
tmpDir.deleteRecursively()
tmpDir.mkdir()