From 002ebec7ce9bea61beb30f57a038e95fb65353ff Mon Sep 17 00:00:00 2001 From: Antoine POPINEAU Date: Sat, 8 Aug 2020 14:58:50 +0200 Subject: [PATCH] Do not delete downloaded tracks on log out. Downloaded tracks can be quite precious when you have lots of them (as redownloading all of them can be costly in terms of time and money). This prevents downloaded tracks from being deleted along with your session. This must be included in 0.21, so we can safely implement Funkwhale's new authentication mechanism in 0.22. --- app/src/main/java/com/github/apognu/otter/Otter.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/com/github/apognu/otter/Otter.kt b/app/src/main/java/com/github/apognu/otter/Otter.kt index 28fc57a..bdbb0ab 100644 --- a/app/src/main/java/com/github/apognu/otter/Otter.kt +++ b/app/src/main/java/com/github/apognu/otter/Otter.kt @@ -87,8 +87,6 @@ class Otter : Application() { } cacheDir.resolve("picasso-cache").deleteRecursively() - - exoDownloadManager.removeAllDownloads() } inner class CrashReportHandler : Thread.UncaughtExceptionHandler {