Moved diff computation of policy list to the background thread
This commit is contained in:
parent
dd76a74e1c
commit
982a43fce1
@ -61,9 +61,10 @@ class SuperuserViewModel(
|
|||||||
{ it.item.packageName }
|
{ it.item.packageName }
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
.map { it to items.calculateDiff(it) }
|
||||||
.applySchedulers()
|
.applySchedulers()
|
||||||
.applyViewModel(this)
|
.applyViewModel(this)
|
||||||
.subscribeK { items.update(it) }
|
.subscribeK { items.update(it.first, it.second) }
|
||||||
.add()
|
.add()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user