From 08dd0f9719d500ca1ac347e5a0453ee09a2bec84 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Sun, 12 Jan 2020 11:32:45 +0100 Subject: [PATCH] implement go-to-last-anchor --- src/org/thoughtcrime/securesms/LocalHelpActivity.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/LocalHelpActivity.java b/src/org/thoughtcrime/securesms/LocalHelpActivity.java index dfe394dad..3f5c7eaba 100644 --- a/src/org/thoughtcrime/securesms/LocalHelpActivity.java +++ b/src/org/thoughtcrime/securesms/LocalHelpActivity.java @@ -105,10 +105,18 @@ public class LocalHelpActivity extends PassphraseRequiredActionBarActivity openOnlineUrl("https://github.com/deltachat/deltachat-android/issues"); return true; } - return false; } + @Override + public void onBackPressed() { + if (webView.canGoBack()) { + webView.goBack(); + } else { + super.onBackPressed(); + } + } + private void openOnlineUrl(String url) { try { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));