diff --git a/android/app/src/main/java/app/organicmaps/help/HelpFragment.java b/android/app/src/main/java/app/organicmaps/help/HelpFragment.java index 2393a0712..8f53f6b2b 100644 --- a/android/app/src/main/java/app/organicmaps/help/HelpFragment.java +++ b/android/app/src/main/java/app/organicmaps/help/HelpFragment.java @@ -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); diff --git a/android/app/src/main/res/layout-land/about.xml b/android/app/src/main/res/layout-land/about.xml index fe8b4d8dd..800467eff 100644 --- a/android/app/src/main/res/layout-land/about.xml +++ b/android/app/src/main/res/layout-land/about.xml @@ -153,6 +153,7 @@ android:text="@string/osm_presentation" android:textAppearance="@style/MwmTextAppearance.Body2" android:textColor="?android:textColorPrimary" + android:autoLink="web" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@+id/osm_logo" diff --git a/android/app/src/main/res/layout/about.xml b/android/app/src/main/res/layout/about.xml index e7cd83ff9..8b3cbd9dd 100644 --- a/android/app/src/main/res/layout/about.xml +++ b/android/app/src/main/res/layout/about.xml @@ -106,6 +106,7 @@ android:text="@string/osm_presentation" android:textAppearance="@style/MwmTextAppearance.Body2" android:textColor="?android:textColorPrimary" + android:autoLink="web" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@+id/osm_logo"