Commit 982a43fc authored by Viktor De Pasquale's avatar Viktor De Pasquale Committed by John Wu

Moved diff computation of policy list to the background thread

parent dd76a74e
...@@ -61,9 +61,10 @@ class SuperuserViewModel( ...@@ -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()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment