Browse Source

Delete regular data cache on logout.

housekeeping/remove-warnings
Antoine POPINEAU 4 years ago
parent
commit
3a88e02ca0
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
  1. 6
      app/src/main/java/com/github/apognu/otter/Otter.kt

6
app/src/main/java/com/github/apognu/otter/Otter.kt

@ -78,6 +78,12 @@ class Otter : Application() { @@ -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…
Cancel
Save