From 6fdb3adb172e7221723097b656a1f6bb59a1d4dd Mon Sep 17 00:00:00 2001
From: Soren Stoutner
EasyList and EasyPrivacy are - dual licensed under the GPLv3+ +
EasyList and EasyPrivacy + are dual licensed under the GPLv3+ and the Creative Commons Attribution-ShareAlike 3.0+ Unported licenses. Privacy Browser incorporates them using the GPLv3+ option.
diff --git a/app/src/main/assets/de/about_licenses_light.html b/app/src/main/assets/de/about_licenses_light.html index 5d028e5b..778ae184 100644 --- a/app/src/main/assets/de/about_licenses_light.html +++ b/app/src/main/assets/de/about_licenses_light.html @@ -37,8 +37,8 @@ The source code is available from git.stoutner.com.EasyList and EasyPrivacy are - dual licensed under the GPLv3+ +
EasyList and EasyPrivacy + are dual licensed under the GPLv3+ and the Creative Commons Attribution-ShareAlike 3.0+ Unported licenses. Privacy Browser incorporates them using the GPLv3+ option.
diff --git a/app/src/main/assets/en/about_licenses_dark.html b/app/src/main/assets/en/about_licenses_dark.html index 3fbabfb2..2ab9393b 100644 --- a/app/src/main/assets/en/about_licenses_dark.html +++ b/app/src/main/assets/en/about_licenses_dark.html @@ -32,8 +32,8 @@ The source code is available from git.stoutner.com.EasyList and EasyPrivacy are - dual licensed under the GPLv3+ +
EasyList and EasyPrivacy + are dual licensed under the GPLv3+ and the Creative Commons Attribution-ShareAlike 3.0+ Unported licenses. Privacy Browser incorporates them using the GPLv3+ option.
diff --git a/app/src/main/assets/en/about_licenses_light.html b/app/src/main/assets/en/about_licenses_light.html index f30fed24..f95b2ab6 100644 --- a/app/src/main/assets/en/about_licenses_light.html +++ b/app/src/main/assets/en/about_licenses_light.html @@ -32,8 +32,8 @@ The source code is available from git.stoutner.com.EasyList and EasyPrivacy are - dual licensed under the GPLv3+ +
EasyList and EasyPrivacy + are dual licensed under the GPLv3+ and the Creative Commons Attribution-ShareAlike 3.0+ Unported licenses. Privacy Browser incorporates them using the GPLv3+ option.
diff --git a/app/src/main/assets/es/about_licenses_dark.html b/app/src/main/assets/es/about_licenses_dark.html index e7724932..6ded3f24 100644 --- a/app/src/main/assets/es/about_licenses_dark.html +++ b/app/src/main/assets/es/about_licenses_dark.html @@ -34,18 +34,18 @@ El texto completo de la licencia se encuentra en la parte inferior de este documento (se deja en el idioma original). El código fuente está disponible en git.stoutner.com. -EasyList and EasyPrivacy are - dual licensed under the GPLv3+ - and the Creative Commons Attribution-ShareAlike 3.0+ Unported licenses. - Privacy Browser incorporates them using the GPLv3+ option.
- -Fanboyâs Annoyance List and Fanboyâs Social Blocking List - are released under the Creative Commons Attribution 3.0 Unported license, - which is compatible with the GPLv3+. - The lists are included unchanged in Privacy Browser.
- -More information about the block lists can be found on the EasyList website.
+EasyList y EasyPrivacy + tienen licencia dual bajo las licencias GPLv3+ + y Creative Commons Attribution-ShareAlike 3.0+ Unported. + Navegador Privado las incorpora usando la opción GPLv3+.
+ +La lista molesta de Fanboy y la lista de bloqueo social de Fanboy + se liberan bajo la licencia Creative Commons Attribution 3.0 Unported, + la cual es compatible con la GPLv3+. + Las listas se incluyen sin cambios en Navegador Privado.
+ +Más información sobre las listas de bloqueo puede encontrarse en la página web de EasyList.
Navegador privado está construido con la librerÃa de soporte de android, diff --git a/app/src/main/assets/es/about_licenses_light.html b/app/src/main/assets/es/about_licenses_light.html index 1594a041..5a9fe3f6 100644 --- a/app/src/main/assets/es/about_licenses_light.html +++ b/app/src/main/assets/es/about_licenses_light.html @@ -34,18 +34,18 @@ El texto completo de la licencia se encuentra en la parte inferior de este documento (se deja en el idioma original). El código fuente está disponible en git.stoutner.com.
-EasyList and EasyPrivacy are - dual licensed under the GPLv3+ - and the Creative Commons Attribution-ShareAlike 3.0+ Unported licenses. - Privacy Browser incorporates them using the GPLv3+ option.
- -Fanboyâs Annoyance List and Fanboyâs Social Blocking List - are released under the Creative Commons Attribution 3.0 Unported license, - which is compatible with the GPLv3+. - The lists are included unchanged in Privacy Browser.
- -More information about the block lists can be found on the EasyList website.
+EasyList y EasyPrivacy + tienen licencia dual bajo las licencias GPLv3+ + y Creative Commons Attribution-ShareAlike 3.0+ Unported. + Navegador Privado las incorpora usando la opción GPLv3+.
+ +La lista molesta de Fanboy y la lista de bloqueo social de Fanboy + se liberan bajo la licencia Creative Commons Attribution 3.0 Unported, + la cual es compatible con la GPLv3+. + Las listas se incluyen sin cambios en Navegador Privado.
+ +Más información sobre las listas de bloqueo puede encontrarse en la página web de EasyList.
Navegador privado está construido con la librerÃa de soporte de android,
diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java
index 01d1f8b4..8cffc2a5 100644
--- a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java
+++ b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java
@@ -409,21 +409,6 @@ public class MainWebViewActivity extends AppCompatActivity implements AddDomainD
// Run the default commands.
super.onCreate(savedInstanceState);
- // Instantiate the block list helper.
- BlockListHelper blockListHelper = new BlockListHelper();
-
- // Parse the block lists.
- ArrayList> easyList = blockListHelper.parseBlockList(getAssets(), "blocklists/easylist.txt");
- ArrayList
> easyPrivacy = blockListHelper.parseBlockList(getAssets(), "blocklists/easyprivacy.txt");
- ArrayList
> fanboyAnnoyance = blockListHelper.parseBlockList(getAssets(), "blocklists/fanboy-annoyance.txt");
- ArrayList
> fanboySocial = blockListHelper.parseBlockList(getAssets(), "blocklists/fanboy-social.txt");
-
- // Get the list versions.
- easyListVersion = easyList.get(0).get(0)[0];
- easyPrivacyVersion = easyPrivacy.get(0).get(0)[0];
- fanboyAnnoyanceVersion = fanboyAnnoyance.get(0).get(0)[0];
- fanboySocialVersion = fanboySocial.get(0).get(0)[0];
-
// Set the content view.
setContentView(R.layout.main_drawerlayout);
@@ -822,6 +807,21 @@ public class MainWebViewActivity extends AppCompatActivity implements AddDomainD
// drawerToggle creates the hamburger icon at the start of the AppBar.
drawerToggle = new ActionBarDrawerToggle(this, drawerLayout, supportAppBar, R.string.open_navigation_drawer, R.string.close_navigation_drawer);
+ // Instantiate the block list helper.
+ BlockListHelper blockListHelper = new BlockListHelper();
+
+ // Parse the block lists.
+ final ArrayList
> easyList = blockListHelper.parseBlockList(getAssets(), "blocklists/easylist.txt");
+ final ArrayList
> easyPrivacy = blockListHelper.parseBlockList(getAssets(), "blocklists/easyprivacy.txt");
+ final ArrayList
> fanboyAnnoyance = blockListHelper.parseBlockList(getAssets(), "blocklists/fanboy-annoyance.txt");
+ final ArrayList
> fanboySocial = blockListHelper.parseBlockList(getAssets(), "blocklists/fanboy-social.txt");
+
+ // Store the list versions.
+ easyListVersion = easyList.get(0).get(0)[0];
+ easyPrivacyVersion = easyPrivacy.get(0).get(0)[0];
+ fanboyAnnoyanceVersion = fanboyAnnoyance.get(0).get(0)[0];
+ fanboySocialVersion = fanboySocial.get(0).get(0)[0];
+
mainWebView.setWebViewClient(new WebViewClient() {
// `shouldOverrideUrlLoading` makes this `WebView` the default handler for URLs inside the app, so that links are not kicked out to other apps.
// We have to use the deprecated `shouldOverrideUrlLoading` until API >= 24.
diff --git a/app/src/main/java/com/stoutner/privacybrowser/helpers/BlockListHelper.java b/app/src/main/java/com/stoutner/privacybrowser/helpers/BlockListHelper.java
index 62ca537a..ec449a50 100644
--- a/app/src/main/java/com/stoutner/privacybrowser/helpers/BlockListHelper.java
+++ b/app/src/main/java/com/stoutner/privacybrowser/helpers/BlockListHelper.java
@@ -34,33 +34,33 @@ import java.util.regex.Pattern;
public class BlockListHelper {
public ArrayList
> parseBlockList(AssetManager assets, String blockListName) {
// Initialize the header list.
- List