瀏覽代碼

Fix memory leak

inorichi 7 年之前
父節點
當前提交
097d4fe34c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsDownloadController.kt

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