From cbd744ad00d68313925af9020deed5eb8c00a976 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 24 Nov 2023 21:09:20 +0100 Subject: [PATCH] fix localized deep links to help the anchor must not be taken into account when checking for the existance of the asset file. closes #2883 cmp #2842 --- src/org/thoughtcrime/securesms/LocalHelpActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/LocalHelpActivity.java b/src/org/thoughtcrime/securesms/LocalHelpActivity.java index 513bee046..548e412df 100644 --- a/src/org/thoughtcrime/securesms/LocalHelpActivity.java +++ b/src/org/thoughtcrime/securesms/LocalHelpActivity.java @@ -19,7 +19,7 @@ public class LocalHelpActivity extends WebViewActivity getSupportActionBar().setTitle(getString(R.string.menu_help)); String section = getIntent().getStringExtra(SECTION_EXTRA); - String helpPath = "help/LANG/help.html" + (section!=null? section : ""); + String helpPath = "help/LANG/help.html"; String helpLang = "en"; try { Locale locale = dynamicLanguage.getCurrentLocale(); @@ -39,7 +39,7 @@ public class LocalHelpActivity extends WebViewActivity e.printStackTrace(); } - webView.loadUrl("file:///android_asset/" + helpPath.replace("LANG", helpLang)); + webView.loadUrl("file:///android_asset/" + helpPath.replace("LANG", helpLang) + (section!=null? section : "")); } @Override