X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2FMainWebViewActivity.java;h=9bcc6e4b0b528087aee3577e427fdd1656b4a2de;hb=c53f7f40ba3e031ad6d0eb7ccec25e79911819c2;hp=ff63632a9f26e8a40d6a7de4d1db5b67807b3aea;hpb=afe89bbfe094100ef11ead2e615c1df1bab1ec7d;p=PrivacyBrowserAndroid.git diff --git a/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java index ff63632a..9bcc6e4b 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java @@ -742,11 +742,13 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation mainWebView.getSettings().setTextZoom(200); return true; + /* case R.id.find_on_page: appBar.setCustomView(R.layout.find_on_page_app_bar); toggleJavaScript.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER); appBar.invalidateOptionsMenu(); return true; + */ case R.id.share: Intent shareIntent = new Intent(); @@ -876,12 +878,15 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation // Destroy the internal state of the webview. mainWebView.destroy(); - // Close Privacy Browser. finishAndRemoveTask also removes Privacy Browser from the recent app list. + // Close Privacy Browser. `finishAndRemoveTask` also removes Privacy Browser from the recent app list. if (Build.VERSION.SDK_INT >= 21) { finishAndRemoveTask(); } else { finish(); } + + // Remove the terminated program from RAM. The status code is `0`. + System.exit(0); break; default: