From 36dd8ce58c470f101cc603716e1d18bf2f8751b1 Mon Sep 17 00:00:00 2001 From: euxane Date: Wed, 18 Sep 2024 23:41:13 +0200 Subject: errors: update manual links for mulitple help pages --- .../main/java/org/pacien/tincapp/activities/BaseFragment.kt | 4 ++-- app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt | 10 +++++----- app/src/main/res/values/strings.xml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'app') diff --git a/app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt b/app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt index 063680f..9b123bf 100644 --- a/app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt +++ b/app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt @@ -36,9 +36,9 @@ abstract class BaseFragment : Fragment() { parentActivity.runOnUiThread { parentActivity.showErrorDialog( R.string.configure_browse_directories_error_no_file_manager, - docTopic = "browse-files", + docTopic = "troubleshooting.html#no-file-manager-found", ) } } } -} \ No newline at end of file +} diff --git a/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt b/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt index 4194224..c453adb 100644 --- a/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt +++ b/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt @@ -89,13 +89,13 @@ class TincVpnService : VpnService() { private fun startVpn(netName: String, passphrase: String? = null): Unit = synchronized(this) { if (netName.isBlank()) - return reportError(resources.getString(R.string.notification_error_message_no_network_name_provided), docTopic = "intent-api") + return reportError(resources.getString(R.string.notification_error_message_no_network_name_provided), docTopic = "doc.html#intent-api") if (TincKeyring.needsPassphrase(netName) && passphrase == null) return reportError(resources.getString(R.string.notification_error_message_passphrase_not_provided)) if (!AppPaths.confDir(netName).exists()) - return reportError(resources.getString(R.string.notification_error_message_no_configuration_for_network_format, netName), docTopic = "configuration-files") + return reportError(resources.getString(R.string.notification_error_message_no_configuration_for_network_format, netName), docTopic = "doc.html#configuration-files") log.info("Starting tinc daemon for network \"$netName\".") if (isConnected() || getCurrentNetName() != null) stopVpn().join() @@ -126,13 +126,13 @@ class TincVpnService : VpnService() { return reportError( resources.getString(R.string.notification_error_message_network_config_not_found_format, e.defaultMessage()), e, - docTopic = "configuration-files" + docTopic = "doc.html#configuration-files" ) } catch (e: ConversionException) { return reportError( resources.getString(R.string.notification_error_message_network_config_invalid_format, e.defaultMessage()), e, - docTopic = "network-interface", + docTopic = "doc.html#network-interface", ) } catch (e: Exception) { return reportError( @@ -153,7 +153,7 @@ class TincVpnService : VpnService() { return reportError( resources.getString(R.string.notification_error_message_network_config_invalid_format, e.defaultMessage()), e, - docTopic = "network-interface", + docTopic = "doc.html#network-interface", configDir = netName, ) } catch (e: NullPointerException) { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1c8a2ae..3443b88 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -20,7 +20,7 @@ Tinc Mesh VPN - https://tincapp.euxane.net/doc.html#%1$s + https://tincapp.euxane.net/%1$s Error -- cgit v1.2.3