Add getters for metadata extensions

This commit is contained in:
Alex Sytnyk 2018-06-06 22:29:10 +03:00
parent 8b167faac5
commit 7b6d02b93d

View file

@ -6,6 +6,7 @@ import android.graphics.Canvas;
import android.graphics.Color; import android.graphics.Color;
import android.graphics.Paint; import android.graphics.Paint;
import android.support.annotation.ColorInt; import android.support.annotation.ColorInt;
import android.support.annotation.Nullable;
import android.text.TextUtils; import android.text.TextUtils;
import net.osmand.Location; import net.osmand.Location;
@ -270,6 +271,16 @@ public class GPXUtilities {
public static class Metadata extends GPXExtensions { public static class Metadata extends GPXExtensions {
public String desc; 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 { public static class GPXTrackAnalysis {