More onboarding screen additions 2: Electric Boogaloo

This commit is contained in:
arkon
2023-12-09 18:20:58 -05:00
parent e3404cd3d3
commit f7c5b42435
6 changed files with 49 additions and 20 deletions

View File

@@ -396,7 +396,12 @@ object Migrations {
newKey = { Preference.privateKey(it) },
)
}
if (oldVersion < 110) {
if (oldVersion < 111) {
File(context.cacheDir, "dl_index_cache")
.takeIf { it.exists() }
?.delete()
}
if (oldVersion < 112) {
val prefsToReplace = listOf(
"pref_download_only",
"incognito_mode",
@@ -409,6 +414,7 @@ object Migrations {
"last_app_check",
"last_ext_check",
"last_version_code",
"storage_dir",
)
replacePreferences(
preferenceStore = preferenceStore,
@@ -416,11 +422,6 @@ object Migrations {
newKey = { Preference.appStateKey(it) },
)
}
if (oldVersion < 111) {
File(context.cacheDir, "dl_index_cache")
.takeIf { it.exists() }
?.delete()
}
return true
}