Cleanup Obsolete db
This commit is contained in:
1 parent
c112322daf
commit
0ffba596e5
1 file changed
+1
@@ -15,6 +15,7 @@ private val OBSOLETE_CACHE_DIRS = arrayOf(
|
||||
@OptIn(DelicateCoroutinesApi::class)
|
||||
fun cleanObsoleteCache(application: Application) {
|
||||
launchIO {
|
||||
application.deleteDatabase("hosts.db")
|
||||
val dir = application.cacheDir
|
||||
for (subdir in OBSOLETE_CACHE_DIRS) {
|
||||
val file = File(dir, subdir)
|
||||
|
||||
Reference in new issue
Block a user