Fix download indexing with changed storage locations

Fixes #10218

(cherry picked from commit 36f400d54281dd697f1492befc8241eaf31e31ab)

# Conflicts:
#	app/build.gradle.kts
#	app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt
This commit is contained in:
arkon
2023-12-15 18:44:37 -05:00
committed by Jobobby04
parent 50505574e8
commit b0d7a611f7
5 changed files with 55 additions and 46 deletions
+2 -3
View File
@@ -650,9 +650,8 @@ object EXHMigrations {
newKey = { Preference.privateKey(it) },
)
File(context.cacheDir, "dl_index_cache")
.takeIf { it.exists() }
?.delete()
// Deleting old download cache index files, but might as well clear it all out
context.cacheDir.deleteRecursively()
}
// if (oldVersion under 1) { } (1 is current release version)