\r
<body>\r
<h3>2.0.1 (version code 20)</h3>\r
- <p>21. März 2017 - Mindest-API 19, Ziel-API 25</p>\r
+ <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=1aec01e7c168c3fcc272530607e16f5ffa6d6c74">21. März 2017</a> - Mindest-API 19, Ziel-API 25</p>\r
<ul>\r
<li><a href="https://redmine.stoutner.com/issues/101">Only load domain settings when the domain changes</a>.</li>\r
<li>Only apply domain settings to subdomains if <a href="https://redmine.stoutner.com/issues/99">*. is specified at the beginning of the domain name</a>.</li>\r
<body>
<h3>2.0.1 (version code 20)</h3>
- <p>21 March 2017 - minimum API 19, target API 25</p>
+ <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=1aec01e7c168c3fcc272530607e16f5ffa6d6c74">21 March 2017</a> - minimum API 19, target API 25</p>
<ul>
<li><a href="https://redmine.stoutner.com/issues/101">Only load domain settings when the domain changes</a>.</li>
<li>Only apply domain settings to subdomains if <a href="https://redmine.stoutner.com/issues/99">*. is specified at the beginning of the domain name</a>.</li>
<body>
<h3>2.0.1 (código de versión 20)</h3>
- <p>21 de marzo de 2017 - API mínimo 19, API dirigido 25</p>
+ <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=1aec01e7c168c3fcc272530607e16f5ffa6d6c74">21 de marzo de 2017</a> - API mínimo 19, API dirigido 25</p>
<ul>
<li><a href="https://redmine.stoutner.com/issues/101">Sólo cargar la configuración del dominio cuando el dominio cambie</a>.</li>
<li>Sólo aplicar la configuración de dominio a subdominios si <a href="https://redmine.stoutner.com/issues/99">*. se especifica al principio del nombre de dominio</a>.</li>
<body>
<h3>2.0.1 (versione codice 20)</h3>
- <p>21 Marzo 2017 - minima API 19, target API 25</p>
+ <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=1aec01e7c168c3fcc272530607e16f5ffa6d6c74">21 Marzo 2017</a> - minima API 19, target API 25</p>
<ul>
<li><a href="https://redmine.stoutner.com/issues/101">Carica le impostazioni di un dominio solo quando cambia</a>.</li>
<li>Applica le impostazioni di un dominio ai sottodomini solo se <a href="https://redmine.stoutner.com/issues/99">viene aggiunto *. prima del nome del dominio</a>.</li>
mainWebView.loadUrl(url, customHeaders);
}
- // We have to use the deprecated `.getColor()` until the minimum API >= 23.
+ // We have to use the deprecated `.getDrawable()` until the minimum API >= 21.
@SuppressWarnings("deprecation")
private void applyDomainSettings(String url) {
// Parse the URL into a URI.
mainWebView.getSettings().setUserAgentString(userAgentString);
}
- // Set a green background on `urlTextBox` to indicate that custom domain settings are being used. We have to use the deprecated `.getColor()` until the minimum API >= 23.
- urlAppBarFrameLayout.setBackgroundColor(getResources().getColor(R.color.green_100));
+ // Set a green background on `urlTextBox` to indicate that custom domain settings are being used. We have to use the deprecated `.getDrawable()` until the minimum API >= 21.
+ urlAppBarFrameLayout.setBackground(getResources().getDrawable(R.drawable.url_bar_background_green));
} else { // The URL we are loading does not have custom domain settings. Load the defaults.
// Get the shared preference values. `this` references the current context.
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
break;
}
- // Set a transparent background on `urlTextBox`. We have to use the deprecated `.getColor()` until the minimum API >= 23.
- urlAppBarFrameLayout.setBackgroundColor(getResources().getColor(R.color.transparent));
+ // Set a transparent background on `urlTextBox`. We have to use the deprecated `.getDrawable()` until the minimum API >= 21.
+ urlAppBarFrameLayout.setBackgroundDrawable(getResources().getDrawable(R.drawable.url_bar_background_transparent));
}
// Close `domainsDatabaseHelper`.
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Copyright 2017 Soren Stoutner <soren@stoutner.com>.
+
+ This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
+
+ Privacy Browser is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Privacy Browser is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Privacy Browser. If not, see <http://www.gnu.org/licenses/>. -->
+
+<shape
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle" >
+
+ <solid
+ android:color="@color/green_100" />
+
+ <corners
+ android:radius="10dp" />
+</shape>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Copyright 2017 Soren Stoutner <soren@stoutner.com>.
+
+ This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
+
+ Privacy Browser is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Privacy Browser is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Privacy Browser. If not, see <http://www.gnu.org/licenses/>. -->
+
+<shape
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle" >
+
+ <solid
+ android:color="@color/transparent" />
+
+ <corners
+ android:radius="10dp" />
+</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright 2016 Soren Stoutner <soren@stoutner.com>.
+ Copyright 2016-2017 Soren Stoutner <soren@stoutner.com>.
This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.