mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-25 15:23:52 +00:00
[android] Linkify osm.org on about fragment
Signed-off-by: Jean-Baptiste Charron <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
committed by
Harry Bond
parent
4627783725
commit
b9edb19dcb
@@ -3,6 +3,7 @@ package app.organicmaps.help;
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
import android.text.TextUtils;
|
||||
import android.text.util.Linkify;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
@@ -53,7 +54,10 @@ public class HelpFragment extends BaseMwmFragment implements View.OnClickListene
|
||||
final String dataVersion = DateUtils.getShortDateFormatter().format(Framework.getDataVersion());
|
||||
final TextView osmPresentationView = root.findViewById(R.id.osm_presentation);
|
||||
if (osmPresentationView != null)
|
||||
{
|
||||
osmPresentationView.setText(getString(R.string.osm_presentation, dataVersion));
|
||||
Linkify.addLinks(osmPresentationView, Linkify.WEB_URLS);
|
||||
}
|
||||
|
||||
setupItem(R.id.news, true, root);
|
||||
setupItem(R.id.web, true, root);
|
||||
|
||||
Reference in New Issue
Block a user