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:
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…
x
Reference in New Issue
Block a user