Force recreate download index cache on upgrade
Fixes #10187 (cherry picked from commit ccadfc8fe53ff1b8ab66b0e91a4fa5a21481bcda) # Conflicts: # app/build.gradle.kts
This commit is contained in:
@@ -665,6 +665,10 @@ object EXHMigrations {
|
||||
filterPredicate = { it.key in privatePrefsToReplace },
|
||||
newKey = { Preference.privateKey(it) },
|
||||
)
|
||||
|
||||
File(context.cacheDir, "dl_index_cache")
|
||||
.takeIf { it.exists() }
|
||||
?.delete()
|
||||
}
|
||||
|
||||
// if (oldVersion under 1) { } (1 is current release version)
|
||||
|
||||
Reference in New Issue
Block a user