mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user