mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-14 11:37:36 +00:00
Delete outdated policies when refresh
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user