Add download action to New Chapters Notification (#6336)

This commit is contained in:
KieuQ
2021-12-12 01:51:30 +08:00
committed by GitHub
parent aed51251b3
commit 808177f8c9
4 changed files with 78 additions and 2 deletions
@@ -514,10 +514,9 @@ class Downloader(
companion object {
const val TMP_DIR_SUFFIX = "_tmp"
const val CHAPTERS_PER_SOURCE_QUEUE_WARNING_THRESHOLD = 15
}
}
private const val CHAPTERS_PER_SOURCE_QUEUE_WARNING_THRESHOLD = 15
// Arbitrary minimum required space to start a download: 50 MB
private const val MIN_DISK_SPACE = 50 * 1024 * 1024