Fix memory leak
This commit is contained in:
parent
5914346ace
commit
097d4fe34c
@ -109,7 +109,7 @@ class SettingsDownloadController : SettingsController() {
|
|||||||
.subscribeUntilDestroy { isVisible = it }
|
.subscribeUntilDestroy { isVisible = it }
|
||||||
|
|
||||||
preferences.downloadNewCategories().asObservable()
|
preferences.downloadNewCategories().asObservable()
|
||||||
.subscribe {
|
.subscribeUntilDestroy {
|
||||||
val selectedCategories = it
|
val selectedCategories = it
|
||||||
.mapNotNull { id -> dbCategories.find { it.id == id.toInt() } }
|
.mapNotNull { id -> dbCategories.find { it.id == id.toInt() } }
|
||||||
.sortedBy { it.order }
|
.sortedBy { it.order }
|
||||||
|
Loading…
Reference in New Issue
Block a user