I have a custom view with instances that are added...
# android
j
I have a custom view with instances that are added programmatically to a fragment. The issue is that when I try to remove one of these instances, I get a
ConcurrentModificationException
. I think this is because I have a sequence of the fragments children that I am searching through, but I need it to know which children to remove. I’ve tried using iterators, but that just gets the same result. What am I doing wrong? (Code truncated for brevity.)