Commit d05408c8 authored by vvb2060's avatar vvb2060 Committed by John Wu

Delete outdated policies when refresh

parent ee0ec3fb
......@@ -55,6 +55,7 @@ class SuperuserViewModel(
}
state = State.LOADING
val (policies, diff) = withContext(Dispatchers.Default) {
db.deleteOutdated()
val policies = db.fetchAll {
PolicyRvItem(it, it.icon, this@SuperuserViewModel)
}.sortedWith(compareBy(
......
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