work around concurrent access exception

quick fix by copying into an array until I figure out where the other
access is coming from.
This commit is contained in:
Eric House 2020-10-21 12:42:49 -07:00
parent 284e7eb85a
commit e5bb7c4a8b

View file

@ -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 ) );
}
}