]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Delete the entire private `cache` folder on `Clear and Exit`.
authorSoren Stoutner <soren@stoutner.com>
Fri, 7 Apr 2017 03:54:26 +0000 (20:54 -0700)
committerSoren Stoutner <soren@stoutner.com>
Fri, 7 Apr 2017 03:54:26 +0000 (20:54 -0700)
app/build.gradle
app/src/main/assets/de/about_changelog.html
app/src/main/assets/en/about_changelog.html
app/src/main/assets/en/guide_user_agent.html
app/src/main/assets/es/about_changelog.html
app/src/main/assets/it/about_changelog.html
app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java
build.gradle

index 822563b30536bef82e912d161107d777e4a4c5e0..208ca35a43b2fef917821c76151e367bab6824fa 100644 (file)
@@ -55,7 +55,7 @@ android {
 
 dependencies {
     compile fileTree(include: ['*.jar'], dir: 'libs')
 
 dependencies {
     compile fileTree(include: ['*.jar'], dir: 'libs')
-    compile 'com.android.support:design:25.3.0'
+    compile 'com.android.support:design:25.3.1'
 
     // Only compile `com.google.firebase:firebase-ads:9.8.0` for the free flavor.
     freeCompile 'com.google.firebase:firebase-ads:9.8.0'
 
     // Only compile `com.google.firebase:firebase-ads:9.8.0` for the free flavor.
     freeCompile 'com.google.firebase:firebase-ads:9.8.0'
index 2163213138a1e98087a44a1f17b5fb5811146748..fcae7d2a28e9f006d1434d34634f7179052a7066 100644 (file)
@@ -32,7 +32,7 @@
 \r
     <body>\r
         <h3>2.1 (version code 21)</h3>\r
 \r
     <body>\r
         <h3>2.1 (version code 21)</h3>\r
-        <p>25. M&auml;rz 2017 - Mindest-API 19, Ziel-API 25</p>\r
+        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=f01cad697eb5ab015888e88e20f26ac5911b1d85">25. M&auml;rz 2017</a> - Mindest-API 19, Ziel-API 25</p>\r
         <ul>\r
             <li>Fix a <a href="https://redmine.stoutner.com/issues/110">crash on load</a> introduced in version 2.0.1 if the homepage is set to be blank.</li>\r
             <li>Fix a bug that <a href="https://redmine.stoutner.com/issues/112">prevented websites with a localhost domain from loading</a>.</li>\r
         <ul>\r
             <li>Fix a <a href="https://redmine.stoutner.com/issues/110">crash on load</a> introduced in version 2.0.1 if the homepage is set to be blank.</li>\r
             <li>Fix a bug that <a href="https://redmine.stoutner.com/issues/112">prevented websites with a localhost domain from loading</a>.</li>\r
index 1e4270cd4535555034c02bec9fe9f403647e0970..f007811905e1d457d2cb9601e3c6256c608fb31c 100644 (file)
@@ -27,7 +27,7 @@
 
     <body>
         <h3>2.1 (version code 21)</h3>
 
     <body>
         <h3>2.1 (version code 21)</h3>
-        <p>25 March 2017 - minimum API 19, target API 25</p>
+        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=f01cad697eb5ab015888e88e20f26ac5911b1d85">25 March 2017</a> - minimum API 19, target API 25</p>
         <ul>
             <li>Fix a <a href="https://redmine.stoutner.com/issues/110">crash on load</a> introduced in version 2.0.1 if the homepage is set to be blank.</li>
             <li>Fix a bug that <a href="https://redmine.stoutner.com/issues/112">prevented websites with a localhost domain from loading</a>.</li>
         <ul>
             <li>Fix a <a href="https://redmine.stoutner.com/issues/110">crash on load</a> introduced in version 2.0.1 if the homepage is set to be blank.</li>
             <li>Fix a bug that <a href="https://redmine.stoutner.com/issues/112">prevented websites with a localhost domain from loading</a>.</li>
index 2c7d707219d13bb520de24a81159c5cd774bd087..d487b6971fd184758c5ce141a298494b7b5e6d11 100644 (file)
@@ -58,6 +58,6 @@
             as their user agent, it will be a good choice for privacy. Firefox or Chrome are the most common user agents, but they auto-update and their version numbers change so quickly that it is likely the user agents included in Privacy Browser
             will often be out of step with the majority of user agents in the server logs.</p>
 
             as their user agent, it will be a good choice for privacy. Firefox or Chrome are the most common user agents, but they auto-update and their version numbers change so quickly that it is likely the user agents included in Privacy Browser
             will often be out of step with the majority of user agents in the server logs.</p>
 
-        <p>Android's WebView does not allow the user agent to be blank. If it is, WebView simply sends the default user agent to the server.</p>
+        <p>Android&rsquo;s WebView does not allow the user agent to be blank. If it is, WebView simply sends the default user agent to the server.</p>
     </body>
 </html>
\ No newline at end of file
     </body>
 </html>
\ No newline at end of file
index 738a08c07ca93b940f0d854fe3d2a14b2e21187c..7b2fc4dc581dbdfa4fbfdb32e84d5d0a33b2a4e7 100644 (file)
@@ -29,7 +29,7 @@
 
     <body>
         <h3>2.1 (c&oacute;digo de versi&oacute;n 21)</h3>
 
     <body>
         <h3>2.1 (c&oacute;digo de versi&oacute;n 21)</h3>
-        <p>25 de marzo de 2017 - API m&iacute;nimo 19, API dirigido 25</p>
+        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=f01cad697eb5ab015888e88e20f26ac5911b1d85">25 de marzo de 2017</a> - API m&iacute;nimo 19, API dirigido 25</p>
         <ul>
             <li>Arreglar un <a href="https://redmine.stoutner.com/issues/110">problema al cargar</a> introducido en la versión 2.0.1 si la p&aacute;gina de inicio est&aacute; en blanco.</li>
             <li>Arreglar un error que <a href="https://redmine.stoutner.com/issues/112">imped&iacute;a la carga de p&aacute;ginas web con un dominio localhost</a>.</li>
         <ul>
             <li>Arreglar un <a href="https://redmine.stoutner.com/issues/110">problema al cargar</a> introducido en la versión 2.0.1 si la p&aacute;gina de inicio est&aacute; en blanco.</li>
             <li>Arreglar un error que <a href="https://redmine.stoutner.com/issues/112">imped&iacute;a la carga de p&aacute;ginas web con un dominio localhost</a>.</li>
index f68652d43f5ef1a998a3f42d478b0dd242fbfdf7..98257fcadb987d894a8e5955d636bf9a0a5b81e2 100644 (file)
@@ -29,7 +29,7 @@
 
     <body>
         <h3>2.1 (versione codice 21)</h3>
 
     <body>
         <h3>2.1 (versione codice 21)</h3>
-        <p>25 Marzo 2017 - minima API 19, target API 25</p>
+        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=f01cad697eb5ab015888e88e20f26ac5911b1d85">25 Marzo 2017</a> - minima API 19, target API 25</p>
         <ul>
             <li>Eliminazione di un <a href="https://redmine.stoutner.com/issues/110">crash durante il caricamento</a> introdotto nella versione 2.0.1 quando la homepage &egrave; impostata per essere una pagina vuota.</li>
             <li>Eliminazione di un bug che <a href="https://redmine.stoutner.com/issues/112">impediva il caricamento di siti con dominio localhost</a>.</li>
         <ul>
             <li>Eliminazione di un <a href="https://redmine.stoutner.com/issues/110">crash durante il caricamento</a> introdotto nella versione 2.0.1 quando la homepage &egrave; impostata per essere una pagina vuota.</li>
             <li>Eliminazione di un bug che <a href="https://redmine.stoutner.com/issues/112">impediva il caricamento di siti con dominio localhost</a>.</li>
index 5f82807c68417b1954bf960b009bb777b25b4011..292292fa0f3565a1c3f92ca2d698d8f7ed58716b 100644 (file)
@@ -1379,13 +1379,17 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation
                 // Destroy the internal state of `mainWebView`.
                 mainWebView.destroy();
 
                 // Destroy the internal state of `mainWebView`.
                 mainWebView.destroy();
 
-                // Manually delete the `app_webview` folder, which contains an additional `WebView` cache.  See `https://code.google.com/p/android/issues/detail?id=233826&thanks=233826&ts=1486670530`.
+                // Manually delete folders.
                 Runtime runtime = Runtime.getRuntime();
                 String dataDirString = getApplicationInfo().dataDir;  // `dataDir` will vary, but will be something like `/data/user/0/com.stoutner.privacybrowser.standard`, which links to `/data/data/com.stoutner.privacybrowser.standard`.
                 try {
                 Runtime runtime = Runtime.getRuntime();
                 String dataDirString = getApplicationInfo().dataDir;  // `dataDir` will vary, but will be something like `/data/user/0/com.stoutner.privacybrowser.standard`, which links to `/data/data/com.stoutner.privacybrowser.standard`.
                 try {
+                    // Delete the main `cache` folder.
+                    runtime.exec("rm -rf " + dataDirString + "/cache");
+
+                    // Delete the `app_webview` folder, which contains an additional `WebView` cache.  See `https://code.google.com/p/android/issues/detail?id=233826&thanks=233826&ts=1486670530`.
                     runtime.exec("rm -rf " + dataDirString + "/app_webview");
                 } catch (IOException e) {
                     runtime.exec("rm -rf " + dataDirString + "/app_webview");
                 } catch (IOException e) {
-                    // Do nothing if the files do not exist.
+                    // Do nothing if an error is thrown.
                 }
 
                 // 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.
index c6f2f5009ec4294c7f78dba3d21f2f1bb6e72095..072e693a82ea35f963415dc2a8beea0f43e4a352 100644 (file)
@@ -5,7 +5,7 @@ buildscript {
         jcenter()
     }
     dependencies {
         jcenter()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:2.3.0'
+        classpath 'com.android.tools.build:gradle:2.3.1'
 
         // 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