From 275cc58e8a518bd4d52d5641493ed9d04e437c13 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 13 Nov 2020 13:06:26 +0200 Subject: [PATCH] small changes --- OsmAnd/res/layout/fragment_opr_login.xml | 2 +- .../openplacereviews/OPRWebviewActivity.java | 9 ++-- .../openplacereviews/OprStartFragment.java | 43 ++++++++++++++++--- 3 files changed, 42 insertions(+), 12 deletions(-) diff --git a/OsmAnd/res/layout/fragment_opr_login.xml b/OsmAnd/res/layout/fragment_opr_login.xml index 5decb55147..9cfb97a1e3 100644 --- a/OsmAnd/res/layout/fragment_opr_login.xml +++ b/OsmAnd/res/layout/fragment_opr_login.xml @@ -3,6 +3,7 @@ android:background="@color/color_white" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" + android:clickable="true" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -57,7 +58,6 @@ android:textColor="@color/color_black" android:textColorLink="@color/icon_color_active_light" android:layout_marginRight="16dp" - android:autoLink="all" android:text="@string/register_on_openplacereviews_desc"/> findViewById(R.id.start_opr_description).setText(ss); + v.findViewById(R.id.start_opr_description).setMovementMethod(LinkMovementMethod.getInstance()); + } + + + private class URLSpanNoUnderline extends URLSpan { + public URLSpanNoUnderline(String url) { + super(url); + } + + @Override + public void updateDrawState(TextPaint ds) { + super.updateDrawState(ds); + ds.setUnderlineText(false); + } + } + }