mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Fix iterating items in repositionItems
This commit is contained in:
parent
b1b554d97d
commit
36b5a9eefb
2 changed files with 2 additions and 3 deletions
|
|
@ -493,7 +493,7 @@ class UIViewModel @Inject constructor(
|
|||
|
||||
fun updateActionPositions(actions: List<QuickChatAction>) {
|
||||
viewModelScope.launch(Dispatchers.Main) {
|
||||
for (position in 0..actions.size) {
|
||||
for (position in actions.indices) {
|
||||
quickChatActionRepository.setItemPosition(actions[position].uuid, position)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue