Make links clickable in about text

Sam Whited created

Change summary

src/main/res/layout/activity_about.xml | 4 +++-
src/main/res/values/strings.xml        | 7 ++++---
2 files changed, 7 insertions(+), 4 deletions(-)

Detailed changes

src/main/res/layout/activity_about.xml 🔗

@@ -10,7 +10,9 @@
 
     <TextView
         android:text="@string/pref_about_message"
+        android:autoLink="web"
         android:layout_width="wrap_content"
-        android:layout_height="wrap_content" />
+        android:layout_height="wrap_content"
+        android:linksClickable="true" />
 
 </ScrollView>

src/main/res/values/strings.xml 🔗

@@ -256,16 +256,17 @@
     <string name="pref_expert_options_summary">Please be careful with these</string>
     <string name="title_activity_about">About Conversations</string>
     <string name="pref_about_conversations_summary">Build and licensing information</string>
-    <string name="pref_about_message">			This program is free software; you can redistribute it and/or modify it
+    <string name="pref_about_message">
+			This program is free software; you can redistribute it and/or modify it
 			under the terms of the GNU General Public License version 3 as published
 			by the Free Software Foundation.\n
 			\n
-			Link: http://www.gnu.org/licenses/gpl-3.0.html\n
+			https://www.gnu.org/licenses/gpl-3.0.html\n
 			\n
 			OpenPGP API is licensed under the Apache License, Version 2.0; You may
 			obtain a copy of the License at:\n
 			\n
-			http://www.apache.org/licenses/LICENSE-2.0\n
+			https://www.apache.org/licenses/LICENSE-2.0\n
 			\n
 			Minidns © 2014 Rene Treffer and is provided under the WTFPL\n
 			\n