Przeglądaj źródła

Fix memory leak

inorichi 7 lat temu
rodzic
commit
097d4fe34c

+ 1 - 1
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 }