Actually convert file uri to content uri

This commit is contained in:
len
2017-09-10 12:29:04 +02:00
parent 69cbbd5811
commit f3080b6277
3 changed files with 17 additions and 9 deletions

View File

@@ -45,6 +45,16 @@ object Migrations {
}
}
}
if (oldVersion < 26) {
// Delete external chapter cache dir.
val extCache = context.externalCacheDir
if (extCache != null) {
val chapterCache = File(extCache, "chapter_disk_cache")
if (chapterCache.exists()) {
chapterCache.deleteRecursively()
}
}
}
return true
}
return false