diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsDownloadController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsDownloadController.kt index e1fa81e5ed..39485d6ece 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsDownloadController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsDownloadController.kt @@ -109,7 +109,7 @@ class SettingsDownloadController : SettingsController() { .subscribeUntilDestroy { isVisible = it } preferences.downloadNewCategories().asObservable() - .subscribe { + .subscribeUntilDestroy { val selectedCategories = it .mapNotNull { id -> dbCategories.find { it.id == id.toInt() } } .sortedBy { it.order }