Skip to content

Commit

Permalink
fix: after connecting to an exchange, click will put the address in t…
Browse files Browse the repository at this point in the history
…he input
  • Loading branch information
HashEngineering committed Feb 6, 2024
1 parent 7ee2e66 commit 2e96506
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ abstract class AddressInputFragment : Fragment(R.layout.fragment_address_input)
* uses actionText if the address for a source is null
*/
fun setAddressSources(source: List<AddressSource>, actionText: String?) {
viewModel.addressSources.clear()
viewModel.addressSources.addAll(source)
binding.addressSourceContainer.isVisible = source.isNotEmpty()
adapter?.run {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ class IconifiedListAdapter(
holder.bind(item)

holder.binding.root.setOnClickListener {
clickListener.invoke(item, position)
// item may have changed
val updatedItem = getItem(position)
clickListener.invoke(updatedItem, position)
}
}
}
Expand Down

0 comments on commit 2e96506

Please sign in to comment.