From 16b8ad46c09515de949f0f47a0ef16f799a7e878 Mon Sep 17 00:00:00 2001 From: alansley Date: Thu, 29 Aug 2024 17:34:03 +1000 Subject: [PATCH] Fix two one-liner issues --- .../thoughtcrime/securesms/preferences/HelpSettingsActivity.kt | 3 +-- app/src/main/res/xml/preferences_privacy.xml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/preferences/HelpSettingsActivity.kt b/app/src/main/java/org/thoughtcrime/securesms/preferences/HelpSettingsActivity.kt index 2959a46016..d3c68a814d 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/preferences/HelpSettingsActivity.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/preferences/HelpSettingsActivity.kt @@ -115,8 +115,7 @@ class HelpSettingsFragment: CorrectedPreferenceFragment() { val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url)) startActivity(intent) } catch (e: Exception) { - // TODO: Have asked Rebecca about a new string for this to replace the hard-coded text below - Toast.makeText(requireActivity(), "Can't open URL", Toast.LENGTH_LONG).show() + Toast.makeText(requireActivity(), requireContext().getString(R.string.errorUnknown), Toast.LENGTH_LONG).show() } } diff --git a/app/src/main/res/xml/preferences_privacy.xml b/app/src/main/res/xml/preferences_privacy.xml index 131a9d3efa..b4082bd125 100644 --- a/app/src/main/res/xml/preferences_privacy.xml +++ b/app/src/main/res/xml/preferences_privacy.xml @@ -39,7 +39,7 @@ android:key="pref_typing_indicators" android:title="@string/typingIndicators" android:summary="@string/typingIndicatorsDescription" /> - +