mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-14 10:11:58 +00:00
Handle tasks that aren’t in taskOrder. Fixes #603
This commit is contained in:
parent
26185b245d
commit
50b21dc939
1 changed files with 5 additions and 0 deletions
|
|
@ -73,6 +73,11 @@ class RealmTaskLocalRepository(realm: Realm) : RealmBaseLocalRepository(realm),
|
|||
taskMap.remove(taskId)
|
||||
}
|
||||
}
|
||||
for (task in taskMap.values) {
|
||||
task.position = position
|
||||
taskList.add(task)
|
||||
position++
|
||||
}
|
||||
return taskList
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue