From ed6f82af0f978788c3bcbe6c40e8190842a9d668 Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 27 Apr 2020 20:06:47 -0400 Subject: [PATCH] Only apply downloaded only to chapter lists in library --- .../tachiyomi/ui/manga/chapter/ChaptersPresenter.kt | 2 +- .../java/eu/kanade/tachiyomi/ui/more/MoreController.kt | 2 ++ app/src/main/res/values/strings.xml | 8 ++++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.kt index fdef7d1128..261e9ad222 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.kt @@ -397,7 +397,7 @@ class ChaptersPresenter( * Whether downloaded only mode is enabled. */ fun forceDownloaded(): Boolean { - return preferences.downloadedOnly().get() + return manga.favorite && preferences.downloadedOnly().get() } /** diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/more/MoreController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/more/MoreController.kt index 7be87b07c1..457220789d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/more/MoreController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/more/MoreController.kt @@ -14,6 +14,7 @@ import eu.kanade.tachiyomi.util.preference.iconTint import eu.kanade.tachiyomi.util.preference.onClick import eu.kanade.tachiyomi.util.preference.preference import eu.kanade.tachiyomi.util.preference.preferenceCategory +import eu.kanade.tachiyomi.util.preference.summaryRes import eu.kanade.tachiyomi.util.preference.switchPreference import eu.kanade.tachiyomi.util.preference.titleRes import eu.kanade.tachiyomi.util.system.getResourceColor @@ -30,6 +31,7 @@ class MoreController : SettingsController(), RootController { switchPreference { key = Keys.downloadedOnly titleRes = R.string.label_downloaded_only + summaryRes = R.string.downloaded_only_summary iconRes = R.drawable.ic_cloud_off_24dp iconTint = tintColor } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 96212b137f..659bb9bc54 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -12,7 +12,6 @@ More - Downloaded only Settings Download queue Library @@ -305,7 +304,7 @@ Sync chapters after reading Services - + Backup Create backup Can be used to restore current library @@ -364,6 +363,11 @@ Helps fix any bugs. No sensitive data will be sent + + Downloaded only + Filters all manga in your library + + Log in to %1$s Username