Skip to content

Commit

Permalink
Change a variable name to a more describing one
Browse files Browse the repository at this point in the history
  • Loading branch information
furaizi committed Jan 17, 2025
1 parent 828b387 commit 350a24e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/ani/dantotsu/download/DownloadsManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 350a24e

Please sign in to comment.