]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java
Completely remove Privacy Browser from RAM after exit. Updated German translations...
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / MainWebViewActivity.java
index ff63632a9f26e8a40d6a7de4d1db5b67807b3aea..9bcc6e4b0b528087aee3577e427fdd1656b4a2de 100644 (file)
@@ -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: