From 350a24e8559cbad1e356979aee0f1ff5c9eb04e8 Mon Sep 17 00:00:00 2001 From: furaizi Date: Fri, 17 Jan 2025 18:09:43 +0200 Subject: [PATCH] Change a variable name to a more describing one --- app/src/main/java/ani/dantotsu/download/DownloadsManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/ani/dantotsu/download/DownloadsManager.kt b/app/src/main/java/ani/dantotsu/download/DownloadsManager.kt index 914a531b22..071b08093f 100644 --- a/app/src/main/java/ani/dantotsu/download/DownloadsManager.kt +++ b/app/src/main/java/ani/dantotsu/download/DownloadsManager.kt @@ -102,11 +102,11 @@ class DownloadsManager(private val context: Context) { } //now remove all downloads that do not have a folder - val doNotHaveFolder = downloadsList.filter { download -> + val downloadsNotHavingFolder = downloadsList.filter { download -> val downloadDir = directory?.findFolder(download.titleName) !downloadDir.exists() && download.type == type || download.titleName.isBlank() } - downloadsList.removeAll(doNotHaveFolder) + downloadsList.removeAll(downloadsNotHavingFolder) } fun moveDownloadsDir(