Add getters for metadata extensions
This commit is contained in:
parent
8b167faac5
commit
7b6d02b93d
1 changed files with 11 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue