Delete regular data cache on logout.
This commit is contained in:
parent
bab7040b8f
commit
3a88e02ca0
|
@ -78,6 +78,12 @@ class Otter : Application() {
|
|||
fun deleteAllData() {
|
||||
PowerPreference.getFileByName(AppContext.PREFS_CREDENTIALS).clear()
|
||||
|
||||
cacheDir.listFiles()?.forEach {
|
||||
it.delete()
|
||||
}
|
||||
|
||||
cacheDir.resolve("picasso-cache").deleteRecursively()
|
||||
|
||||
exoDownloadManager.removeAllDownloads()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue