Add option to invalidate download cache (#8491)

* Add option to invalidate download cache

* Review changes + lint
This commit is contained in:
AntsyLich
2022-11-11 09:15:35 +06:00
committed by GitHub
parent c76d5dd30c
commit 08d5633d81
3 changed files with 12 additions and 0 deletions

View File

@@ -233,6 +233,10 @@ class DownloadCache(
return UniFile.fromUri(context, dir.toUri())
}
fun invalidateCache() {
lastRenew = 0L
}
/**
* Renews the downloads cache.
*/