diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt
index 422eacceb..8825864b9 100644
--- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt
+++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt
@@ -204,6 +204,7 @@ class ReaderViewModel(
}
private val incognitoMode = preferences.incognitoMode().get()
+ private val downloadAheadAmount = downloadPreferences.autoDownloadWhileReading().get()
init {
// To save state
@@ -444,9 +445,8 @@ class ReaderViewModel(
}
private fun downloadNextChapters() {
+ if (downloadAheadAmount == 0) return
val manga = manga ?: return
- val amount = downloadPreferences.autoDownloadWhileReading().get()
- if (amount == 0 || !manga.favorite) return
// Only download ahead if current + next chapter is already downloaded too to avoid jank
if (getCurrentChapter()?.pageLoader?.isLocal == true) return
@@ -466,7 +466,7 @@ class ReaderViewModel(
} else {
this
}
- }.take(amount)
+ }.take(downloadAheadAmount)
downloadManager.downloadChapters(
manga,
diff --git a/i18n/src/main/res/values/strings.xml b/i18n/src/main/res/values/strings.xml
index 06c68f233..6c6ccda5b 100644
--- a/i18n/src/main/res/values/strings.xml
+++ b/i18n/src/main/res/values/strings.xml
@@ -470,7 +470,7 @@
- Next unread chapter
- Next %d unread chapters
- Only works on entries in library and if the current chapter plus the next one are already downloaded
+ Only works if the current chapter + the next one are already downloaded.
Save as CBZ archive
Split tall images
Improves reader performance