diff --git a/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java b/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java index e56297ddaf..46943c3427 100644 --- a/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java +++ b/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java @@ -75,6 +75,7 @@ import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.util.Arrays; import java.util.Collection; +import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.LinkedHashMap; @@ -129,7 +130,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin { public final OsmandPreference SHOW_RECORDINGS; private DataTileManager recordings = new DataTileManager(14); - private Map recordingByFileName = new LinkedHashMap(); + private Map recordingByFileName = Collections.synchronizedMap(new LinkedHashMap()); private AudioNotesLayer audioNotesLayer; private MapActivity activity; private MediaRecorder mediaRec;