-
Someone talked about it in next Chapter. Deleting Crime deletes the Crime from the DB but throws IndexOutOfBoundsException
-
For this case, it works for me to change
mCrimes = new ArrayList<>();
tomCrimes = new CopyOnWriteArrayList<>();
inCrimeLab.java
.
How can I got it? Just basing on the output of the Logcat: java.util.ConcurrentModificationException
,
I searched remove Fragment Page from ViewPager in Android java.util.ConcurrentModificationException
, and find https://stackoverflow.com/questions/6621991/how-to-handle-concurrentmodificationexception-in-android