From e5bb7c4a8b7b8db0b74d40aa463af2c186cca273 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 21 Oct 2020 12:42:49 -0700 Subject: [PATCH] work around concurrent access exception quick fix by copying into an array until I figure out where the other access is coming from. --- .../src/main/java/org/eehouse/android/xw4/InviteDelegate.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/InviteDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/InviteDelegate.java index ec346a9f8..22b47a171 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/InviteDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/InviteDelegate.java @@ -214,7 +214,8 @@ abstract class InviteDelegate extends DelegateBase updateChecked( items ); m_lv.removeAllViews(); - for ( InviterItem item : items ) { + InviterItem[] itemsArr = items.toArray( new InviterItem[items.size()] ); + for ( InviterItem item : itemsArr ) { m_lv.addView( makeViewFor( itemId, item ) ); } }