]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Program Clear and Exit to clear the cache and the back/forward history.
authorSoren Stoutner <soren@stoutner.com>
Tue, 7 Jun 2016 18:15:52 +0000 (11:15 -0700)
committerSoren Stoutner <soren@stoutner.com>
Tue, 7 Jun 2016 18:15:52 +0000 (11:15 -0700)
app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java
build.gradle

index c7dddad31434d1ee4fb07b155b49c68946f1fbf8..8b60b9d31d566eff3670ba4e6b20802b83ff069a 100644 (file)
@@ -665,6 +665,12 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation
                     cookieManager.removeAllCookie();
                 }
 
                     cookieManager.removeAllCookie();
                 }
 
+                // Clear cache.  The argument of "true" includes disk files.
+                mainWebView.clearCache(true);
+
+                // Clear the back/forward history.
+                mainWebView.clearHistory();
+
                 // Destroy the internal state of the webview.
                 mainWebView.destroy();
 
                 // Destroy the internal state of the webview.
                 mainWebView.destroy();
 
index f6e9073125b2693ab199e4b8fc06d204fdc8a13e..e220f0b807c61bf5a7bb71101d37565b3991478f 100644 (file)
@@ -5,7 +5,7 @@ buildscript {
         jcenter()
     }
     dependencies {
         jcenter()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:2.1.0'
+        classpath 'com.android.tools.build:gradle:2.1.2'
 
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
 
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files