Moved diff computation of policy list to the background thread

This commit is contained in:
Viktor De Pasquale 2019-06-16 09:23:37 +02:00 committed by John Wu
parent dd76a74e1c
commit 982a43fce1

View File

@ -61,9 +61,10 @@ class SuperuserViewModel(
{ it.item.packageName }
))
}
.map { it to items.calculateDiff(it) }
.applySchedulers()
.applyViewModel(this)
.subscribeK { items.update(it) }
.subscribeK { items.update(it.first, it.second) }
.add()
}