mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 11:30:47 -05:00
Fixed updating lists being to heavy for the UI thread
Moved list diff recalculation to the computing thread instead
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package com.topjohnwu.magisk.utils
|
||||
|
||||
fun <T> MutableList<T>.update(newList: List<T>) {
|
||||
clear()
|
||||
addAll(newList)
|
||||
}
|
||||
Reference in New Issue
Block a user