1
0
mirror of https://github.com/apognu/otter synced 2025-02-11 00:30:35 +01:00

Delete regular data cache on logout.

This commit is contained in:
Antoine POPINEAU 2020-06-21 18:51:22 +02:00
parent bab7040b8f
commit 3a88e02ca0
No known key found for this signature in database
GPG Key ID: A78AC64694F84063

View File

@ -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()
}