From dbcac111161ee1e26f8f81397e8643d081b116ef Mon Sep 17 00:00:00 2001 From: Fup Duck Date: Thu, 8 Feb 2018 19:39:37 +0100 Subject: \#8554 * show only first error of error array * show loading screenin credentials activities * render link in error message correctly --- app/src/main/AndroidManifest.xml | 6 +-- .../ProviderCredentialsBaseActivity.java | 27 +++++++++-- app/src/main/res/layout/a_provider_credentials.xml | 53 ++++++++++++---------- app/src/main/res/layout/provider_credentials.xml | 1 + 4 files changed, 57 insertions(+), 30 deletions(-) (limited to 'app/src') diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6a1d40aa..029e9fdb 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -102,10 +102,8 @@ android:label="@string/provider_details_title" android:launchMode="singleTop" /> - - + + = VERSION_CODES.N) { + userMessage.setText(Html.fromHtml(userMessageString, Html.FROM_HTML_MODE_LEGACY)); + } else { + userMessage.setText(Html.fromHtml(userMessageString)); + } + Linkify.addLinks(userMessage, Linkify.ALL); + userMessage.setMovementMethod(LinkMovementMethod.getInstance()); userMessage.setVisibility(VISIBLE); } else if (userMessage.getVisibility() != VISIBLE) { userMessage.setVisibility(GONE); diff --git a/app/src/main/res/layout/a_provider_credentials.xml b/app/src/main/res/layout/a_provider_credentials.xml index 4998effa..6667d905 100644 --- a/app/src/main/res/layout/a_provider_credentials.xml +++ b/app/src/main/res/layout/a_provider_credentials.xml @@ -1,7 +1,6 @@ - - - - - - + android:layout_height="wrap_content" /> + - + + + android:orientation="vertical"> + + + - - + + + diff --git a/app/src/main/res/layout/provider_credentials.xml b/app/src/main/res/layout/provider_credentials.xml index 6e4dff95..0bfdcc47 100644 --- a/app/src/main/res/layout/provider_credentials.xml +++ b/app/src/main/res/layout/provider_credentials.xml @@ -8,6 +8,7 @@ android:layout_height="wrap_content" style="@style/TextAppearance.Design.Error" android:visibility="gone" + android:linksClickable="true" />