Skip to content

Commit

Permalink
Fix ArrayIndexOutOfBoundsException (#3808)
Browse files Browse the repository at this point in the history
Fixes #3807
  • Loading branch information
Nik Clayton authored Jul 6, 2023
1 parent 121db17 commit 3c90f22
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ class AccountFieldEditAdapter : RecyclerView.Adapter<BindingHolder<ItemEditField
}

holder.binding.accountFieldNameText.doAfterTextChanged { newText ->
fieldData[holder.bindingAdapterPosition].first = newText.toString()
fieldData.getOrNull(holder.bindingAdapterPosition)?.first = newText.toString()
}

holder.binding.accountFieldValueText.doAfterTextChanged { newText ->
fieldData[holder.bindingAdapterPosition].second = newText.toString()
fieldData.getOrNull(holder.bindingAdapterPosition)?.second = newText.toString()
}

// Ensure the textview contents are selectable
Expand Down

0 comments on commit 3c90f22

Please sign in to comment.