Fix travel search crash
This commit is contained in:
parent
9673a14c0a
commit
5b42a2f53d
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ public class TravelObfHelper implements TravelHelper {
|
|||
}
|
||||
|
||||
@NonNull
|
||||
public List<TravelArticle> loadPopularArticles() {
|
||||
public synchronized List<TravelArticle> loadPopularArticles() {
|
||||
String lang = app.getLanguage();
|
||||
List<TravelArticle> popularArticles = new ArrayList<>();
|
||||
for (BinaryMapIndexReader reader : getReaders()) {
|
||||
|
@ -190,7 +190,7 @@ public class TravelObfHelper implements TravelHelper {
|
|||
|
||||
@NonNull
|
||||
@Override
|
||||
public List<WikivoyageSearchResult> search(@NonNull String searchQuery) {
|
||||
public synchronized List<WikivoyageSearchResult> search(@NonNull String searchQuery) {
|
||||
List<WikivoyageSearchResult> res = new ArrayList<>();
|
||||
Map<File, List<Amenity>> amenityMap = new HashMap<>();
|
||||
final String appLang = app.getLanguage();
|
||||
|
|
Loading…
Reference in a new issue