krokyze / FitKit

Flutter plugin for reading health and fitness data. Wraps HealthKit on iOS and GoogleFit on Android.
BSD 2-Clause "Simplified" License
98 stars 72 forks source link

Throwing java.util.ConcurrentModificationException fix #42

Closed RafaRuiz closed 4 years ago

RafaRuiz commented 4 years ago

Removing an item from the list while iterating on it will throw: Caused by: java.util.ConcurrentModificationException

if there's more than one item in the list:

image

paulkastel commented 4 years ago

@krokyze please review it and merge it and update fit_kit package on pub.dev

krokyze commented 4 years ago

Will be fixed in next release.