From 503814fc4f9347034ce8f9fe07e2140bb1a5573a Mon Sep 17 00:00:00 2001 From: GaidamakUA Date: Thu, 8 Oct 2015 15:03:31 +0300 Subject: [PATCH] issue #1774 --- .../src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;