diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelObfHelper.java b/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelObfHelper.java index 55c5e6ee32..45a8442614 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelObfHelper.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelObfHelper.java @@ -83,7 +83,7 @@ public class TravelObfHelper implements TravelHelper { } @NonNull - public List loadPopularArticles() { + public synchronized List loadPopularArticles() { String lang = app.getLanguage(); List popularArticles = new ArrayList<>(); for (BinaryMapIndexReader reader : getReaders()) { @@ -190,7 +190,7 @@ public class TravelObfHelper implements TravelHelper { @NonNull @Override - public List search(@NonNull String searchQuery) { + public synchronized List search(@NonNull String searchQuery) { List res = new ArrayList<>(); Map> amenityMap = new HashMap<>(); final String appLang = app.getLanguage();