Speedup gpx generation for travel articles

This commit is contained in:
max-klaus 2021-01-26 11:52:24 +03:00
parent 7e29530f59
commit cf1866d8d5

View file

@ -513,7 +513,7 @@ public class TravelObfHelper implements TravelHelper {
if (article == null && articles == null) { if (article == null && articles == null) {
article = findArticleById(articleId, lang); article = findArticleById(articleId, lang);
} }
if (article != null && !article.gpxFileRead && forceReadPoints) { if (article != null && !article.gpxFileRead && forceReadPoints && !Algorithms.isEmpty(lang)) {
article.gpxFile = buildGpxFile(article); article.gpxFile = buildGpxFile(article);
article.gpxFileRead = true; article.gpxFileRead = true;
} }