Experimental widget settings

This commit is contained in:
Ali
2020-10-30 20:58:02 +04:00
parent 70f5732f5f
commit 08040c1598
13 changed files with 1691 additions and 1056 deletions

View File

@@ -226,7 +226,7 @@ public func mergeListsStableWithUpdates<T>(leftList: [T], rightList: [T], isLess
}
var i = 0
while i < rightList.count {
if updatedItems[i].1 != getId(rightList[i]) {
if updatedItems.count <= i || updatedItems[i].1 != getId(rightList[i]) {
updatedItems.insert((rightList[i], getId(rightList[i])), at: i)
var previousIndex: Int?
for k in 0 ..< leftList.count {