From f2f7c630c30a39339e1c825d9d7557a2b3eab2aa Mon Sep 17 00:00:00 2001 From: geeksville Date: Wed, 15 Apr 2020 13:44:31 -0700 Subject: [PATCH] Turn on clickable auto linking for URLs that appear in our app. --- app/src/main/res/layout/adapter_message_layout.xml | 1 + app/src/main/res/layout/map_not_allowed.xml | 1 + app/src/main/res/layout/settings_fragment.xml | 1 + app/src/main/res/values/strings.xml | 5 +++-- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/layout/adapter_message_layout.xml b/app/src/main/res/layout/adapter_message_layout.xml index 3cc682446..25d9ded76 100644 --- a/app/src/main/res/layout/adapter_message_layout.xml +++ b/app/src/main/res/layout/adapter_message_layout.xml @@ -29,6 +29,7 @@ android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginEnd="8dp" + android:autoLink="all" android:text="@string/sample_message" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/layout/map_not_allowed.xml b/app/src/main/res/layout/map_not_allowed.xml index 0ba87d5a7..b90ab1204 100644 --- a/app/src/main/res/layout/map_not_allowed.xml +++ b/app/src/main/res/layout/map_not_allowed.xml @@ -11,6 +11,7 @@ android:layout_marginStart="16dp" android:layout_marginTop="16dp" android:layout_marginEnd="16dp" + android:autoLink="web" android:text="@string/map_not_allowed" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/app/src/main/res/layout/settings_fragment.xml b/app/src/main/res/layout/settings_fragment.xml index c68655d8c..76e8b7725 100644 --- a/app/src/main/res/layout/settings_fragment.xml +++ b/app/src/main/res/layout/settings_fragment.xml @@ -11,6 +11,7 @@ android:layout_marginStart="16dp" android:layout_marginTop="16dp" android:layout_marginEnd="16dp" + android:autoLink="web" android:ems="10" android:gravity="start|top" android:text="@string/warning_not_paired" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 771a35e8a..bb77aaea2 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -14,7 +14,8 @@ hey I found the cache, it is over here next to the big tiger. I\'m kinda scared. SKH Send Text - You haven\'t yet paired a Meshtastic compatible radio with this phone. Please pair a device and set your username.\n\nThis open-source application is in alpha-testing, if you find problems please post on our website chat.\n\nFor more information see our web page - www.meshtastic.org. + You haven\'t yet paired a Meshtastic compatible radio with this phone. Please pair a device and set your username.\n\n + This open-source application is in alpha-testing, if you find problems please post on our forum: meshtastic.discourse.group.\n\nFor more information see our web page - www.meshtastic.org. Username unset Your Name Anonymous usage statistics and crash reports. @@ -34,7 +35,7 @@ Do you want to switch to the \'%s\' channel? You have analytics disabled. Unfortunately our map provider (mapbox) requires analytics to be allowed for their \'free\' plan. So we have turned off the map view.\n\n If you would like to see the map, you\'ll need to turn on analytics in the Settings pane (also, for the time being you might need to force restart the application).\n\n - If you are interested in us paying for mapbox (or switching to a different map provider), please post in our forum. + If you are interested in us paying for mapbox (or switching to a different map provider), please post in meshtastic.discourse.group A required permission is missing, Meshtastic won\'t be able to work properly. Please enable in application settings. Radio was sleeping, could not change channel