From 59da5e4a01382a9ca5162a8274547f1a467e4572 Mon Sep 17 00:00:00 2001 From: Alex Sytnyk Date: Wed, 6 Jun 2018 22:29:10 +0300 Subject: [PATCH] Add getters for metadata extensions --- OsmAnd/src/net/osmand/plus/GPXUtilities.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/GPXUtilities.java b/OsmAnd/src/net/osmand/plus/GPXUtilities.java index 0126dbc06c..2f343aabf1 100644 --- a/OsmAnd/src/net/osmand/plus/GPXUtilities.java +++ b/OsmAnd/src/net/osmand/plus/GPXUtilities.java @@ -6,6 +6,7 @@ import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.support.annotation.ColorInt; +import android.support.annotation.Nullable; import android.text.TextUtils; import net.osmand.Location; @@ -270,6 +271,16 @@ public class GPXUtilities { public static class Metadata extends GPXExtensions { public String desc; + + @Nullable + public String getArticleTitle() { + return getExtensionsToRead().get("article_title"); + } + + @Nullable + public String getArticleLang() { + return getExtensionsToRead().get("article_lang"); + } } public static class GPXTrackAnalysis {