Force recreate download index cache on upgrade

Fixes #10187

(cherry picked from commit ccadfc8fe53ff1b8ab66b0e91a4fa5a21481bcda)

# Conflicts:
#	app/build.gradle.kts
This commit is contained in:
arkon
2023-12-03 14:58:08 -05:00
committed by Jobobby04
parent fc5021c79d
commit 3a75f7718a
3 changed files with 10 additions and 1 deletions
+4
View File
@@ -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)