]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Create a dark theme for `MainWebViewActivity`.
authorSoren Stoutner <soren@stoutner.com>
Tue, 13 Jun 2017 04:39:08 +0000 (21:39 -0700)
committerSoren Stoutner <soren@stoutner.com>
Tue, 13 Jun 2017 04:39:08 +0000 (21:39 -0700)
51 files changed:
.idea/dictionaries/soren.xml
app/src/free/assets/zh-rTW/about_permissions.html [deleted file]
app/src/free/assets/zh-rTW/about_privacy_policy.html [deleted file]
app/src/free/res/values-zh-rTW/strings.xml [deleted file]
app/src/main/AndroidManifest.xml
app/src/main/assets/de/about_licenses.html
app/src/main/assets/en/about_licenses.html
app/src/main/assets/en/images/ic_style.png [new file with mode: 0644]
app/src/main/assets/es/about_licenses.html
app/src/main/assets/it/about_licenses.html
app/src/main/assets/zh-rTW/about_changelog.html [deleted file]
app/src/main/assets/zh-rTW/about_contributors.html [deleted file]
app/src/main/assets/zh-rTW/about_licenses.html [deleted file]
app/src/main/assets/zh-rTW/about_links.html [deleted file]
app/src/main/assets/zh-rTW/about_permissions.html [deleted file]
app/src/main/assets/zh-rTW/about_privacy_policy.html [deleted file]
app/src/main/assets/zh-rTW/guide_domain_settings.html [deleted file]
app/src/main/assets/zh-rTW/guide_javascript.html [deleted file]
app/src/main/assets/zh-rTW/guide_local_storage.html [deleted file]
app/src/main/assets/zh-rTW/guide_overview.html [deleted file]
app/src/main/assets/zh-rTW/guide_tor.html [deleted file]
app/src/main/assets/zh-rTW/guide_tracking_ids.html [deleted file]
app/src/main/assets/zh-rTW/guide_user_agent.html [deleted file]
app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java
app/src/main/java/com/stoutner/privacybrowser/fragments/SettingsFragment.java
app/src/main/java/com/stoutner/privacybrowser/helpers/OrbotProxyHelper.java
app/src/main/res/color/dark_primary_text_color_selector.xml [new file with mode: 0644]
app/src/main/res/drawable/theme_dark.xml [new file with mode: 0644]
app/src/main/res/drawable/theme_light.xml [new file with mode: 0644]
app/src/main/res/drawable/url_bar_background_dark_blue.xml [new file with mode: 0644]
app/src/main/res/drawable/url_bar_background_green.xml [deleted file]
app/src/main/res/drawable/url_bar_background_light_green.xml [new file with mode: 0644]
app/src/main/res/layout/about_coordinatorlayout.xml
app/src/main/res/layout/bookmarks_coordinatorlayout.xml
app/src/main/res/layout/bookmarks_database_view_coordinatorlayout.xml
app/src/main/res/layout/domain_settings_coordinatorlayout.xml
app/src/main/res/layout/domains_coordinatorlayout.xml
app/src/main/res/layout/guide_coordinatorlayout.xml
app/src/main/res/layout/main_drawerlayout.xml [deleted file]
app/src/main/res/layout/main_drawerlayout_dark.xml [new file with mode: 0644]
app/src/main/res/layout/main_drawerlayout_light.xml [new file with mode: 0644]
app/src/main/res/layout/main_webview.xml
app/src/main/res/layout/navigation_header.xml [deleted file]
app/src/main/res/layout/navigation_header_dark.xml [new file with mode: 0644]
app/src/main/res/layout/navigation_header_light.xml [new file with mode: 0644]
app/src/main/res/values-zh-rTW/strings.xml [deleted file]
app/src/main/res/values/colors.xml
app/src/main/res/values/strings.xml
app/src/main/res/values/styles.xml
app/src/main/res/xml/preferences.xml
build.gradle

index f593ed682be75fa23f6a796a15f3430b4411f9fb..ad8158d5bfd011555a193458801fab0cab81f606 100644 (file)
@@ -6,6 +6,7 @@
       <w>adservers</w>
       <w>adview</w>
       <w>amiunique</w>
       <w>adservers</w>
       <w>adview</w>
       <w>amiunique</w>
+      <w>amoled</w>
       <w>androidversion</w>
       <w>anonymized</w>
       <w>appbarlayout</w>
       <w>androidversion</w>
       <w>anonymized</w>
       <w>appbarlayout</w>
diff --git a/app/src/free/assets/zh-rTW/about_permissions.html b/app/src/free/assets/zh-rTW/about_permissions.html
deleted file mode 100644 (file)
index bbddbb5..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3>Have full network access</h3>
-        <p><a href="https://developer.android.com/reference/android/Manifest.permission.html#INTERNET">android.permission.INTERNET</a></p>
-        <p>Required for the WebView to access the internet. Without this permission, Privacy Browser would be “No Browser: Protecting Your Privacy by Staying Completely Off the Internet”.</p>
-
-        <h3>Install shortcuts</h3>
-        <p><a href="https://developer.android.com/reference/android/Manifest.permission.html#INSTALL_SHORTCUT">com.android.launcher.permission.INSTALL_SHORTCUT</a></p>
-        <p>Required to add shortcuts for websites to the launcher desktop.</p>
-
-        <br/>
-        <hr/>
-        <br/>
-
-        <p>In addition, Privacy Browser Free displays ads from Google's AdMob network using the Firebase backend. For the free flavor, Firebase adds the following permissions even though they are not listed in the manifest file.</p>
-
-        <h3>View network connections</h3>
-        <p><a href="https://developer.android.com/reference/android/Manifest.permission.html#ACCESS_NETWORK_STATE">android.permission.ACCESS_NETWORK_STATE</a></p>
-        <p>Allows the ads to tell when you are connected to the internet and when you aren't (presumably so they don't try to reload an ad when you are disconnected). They can also tell if you are connected via Wi-Fi, 2G, 3G, 4G, etc.</p>
-
-        <h3>Prevent phone from sleeping</h3>
-        <p><a href="https://developer.android.com/reference/android/Manifest.permission.html#WAKE_LOCK">android.permission.WAKE_LOCK</a></p>
-        <p>Allows the ads to keep the processor from sleeping and the screen from dimming, although in my testing I don't think the ads actually do this.</p>
-
-        <h3>Receive data from Internet</h3>
-        <p><a href="http://androidpermissions.com/permission/com.google.android.c2dm.permission.RECEIVE">com.google.android.c2dm.permission.RECEIVE</a></p>
-        <p>Allows Google to send information directly to the AdView without having to receive a request first (cloud-to-device messaging).</p>
-
-        <h3>Receive data from Internet</h3>
-        <p><a href="https://developers.google.com/cloud-messaging/android/client">com.stoutner.privacybrowser.free.permission.C2D_MESSAGE</a></p>
-        <p>Secures the cloud-to-device messages so that only Privacy Browser Free can receive them.</p>
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/free/assets/zh-rTW/about_privacy_policy.html b/app/src/free/assets/zh-rTW/about_privacy_policy.html
deleted file mode 100644 (file)
index b021564..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-
-            strong.red {
-                color: B71C1C;
-            }
-
-            strong.blue {
-                color: 1565C0;
-            }
-
-            item {
-                color: 1976D2;
-                font-weight: bold;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3>Privacy Browser Free</h3>
-        <p><strong class="red">Privacy Browser Free does not collect any user information</strong>.</p>
-
-
-        <h3>Google Play</h3>
-        <p>Google Play has its <a href="https://www.google.com/intl/en/policies/privacy/">own privacy policy</a>.
-            Google provides <em>anonymized summary installation information</em> to developers, including the number of installs organized by the following categories.</p>
-        <ul>
-            <li><item>Android version</item> (eg. Android 7.1)</li>
-            <li><item>Device</item> (eg. Samsung Galaxy S6 [zeroflte])</li>
-            <li><item>Tablets</item> (eg. Tablets 10" and above)</li>
-            <li><item>Country</item> (eg. United States)</li>
-            <li><item>Language</item> (eg. English [United States])</li>
-            <li><item>App version</item> (eg. 14)</li>
-            <li><item>Carrier</item> (eg. T-Mobile - US)</li>
-        </ul>
-
-
-        <h3>Google Play Ratings</h3>
-        <p>Google Play has its <a href="https://www.google.com/intl/en/policies/privacy/">own privacy policy</a>.
-            Google provides developers with <em>anonymized summaries</em> of the following information related to user ratings.</p>
-        <ul>
-            <li><item>Country</item> (eg. United States)</li>
-            <li><item>Language</item> (eg. English)</li>
-            <li><item>App version</item> (eg. 14)</li>
-            <li><item>Android version</item> (eg. Android 7.1)</li>
-            <li><item>Device</item> (eg. Google Nexus 5X [bullhead])</li>
-            <li><item>Tablets</item> (eg. Tablets 10" and above)</li>
-        </ul>
-
-
-        <h3>Google Play Reviews</h3>
-        <p>Google Play has its <a href="https://www.google.com/intl/en/policies/privacy/">own privacy policy</a>.
-            In addition to the name of the reviewer, the rating, and the text of the review (which are all available publicly), Google provides some or all of the following information to the developer.</p>
-        <ul>
-            <li><item>Version code</item> (eg. 7)</li>
-            <li><item>Version name</item> (eg. 1.6)</li>
-            <li><item>Android version</item> (eg. Android 5.1)</li>
-            <li><item>Device</item> (eg. Galaxy S6 Edge+ [zenlte])</li>
-            <li><item>Manufacturer</item> (eg. Samsung)</li>
-            <li><item>Device type</item> (eg. Phone)</li>
-            <li><item>CPU make</item> (eg. Samsung)</li>
-            <li><item>CPU model</item> (eg. Exynos 7420)</li>
-            <li><item>Screen density</item> (eg. 560 dpi)</li>
-            <li><item>Screen size</item> (eg. 2560 x 1440)</li>
-            <li><item>RAM</item> (eg. 4096 MB)</li>
-            <li><item>Native platform</item> (eg. armeabi-v7a,armeabi,arm64v8a)</li>
-            <li><item>OpenGL ES version</item> (eg. 3.1)</li>
-            <li><item>Device language</item> (eg. English)</li>
-        </ul>
-
-
-        <h3>Advertisements</h3>
-        <p>Privacy Browser Free displays a banner ad across the bottom of the screen using Google's AdMob network, which has its <a href="https://www.google.com/intl/en/policies/privacy/">own privacy policy</a>.
-            Note that unless you have <a href="http://www.techrepublic.com/article/pro-tip-how-to-opt-out-of-interest-based-ads-on-your-android-phone/">opted out of interest-based ads</a>,
-            the advertiser will receive a copy of your unique device advertising ID, which allows them to track your device across apps.
-            AdMob reports <em>anonymized summaries</em> of the following information to developers.</p>
-        <ul>
-            <li><item>Total impressions</item></li>
-            <li><item>Total clicks</item></li>
-            <li><item>Platforms</item> (eg. high-end mobile devices, tablets)</li>
-            <li><item>Activity by country</item></li>
-        </ul>
-
-
-        <h3>Direct Communications</h3>
-        <p>Users may choose to send direct communications to Stoutner, like email messages and comments on <a href="https://www.stoutner.com/">stoutner.com</a>.</p>
-
-
-        <h3>Use of Information</h3>
-        <p><strong class="red">Stoutner may use this information in any way that assists in the development of Privacy Browser, like troubleshooting bug reports or developing features, including sharing the information with a third party to assist in this process</strong>.
-            <strong class="blue">Stoutner will never sell this information nor transfer it to any third party that would use it for advertising or marketing</strong>.</p>
-
-        <hr />
-        <p style="text-align: center;"><em>Revision 1.4, 20 April 2017</em></p>
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/free/res/values-zh-rTW/strings.xml b/app/src/free/res/values-zh-rTW/strings.xml
deleted file mode 100644 (file)
index abf7c81..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!--
-  Copyright © 2015-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/>. -->
-
-<resources>
-    <!-- Activities. -->
-    <string name="privacy_browser">Privacy Browser Free</string>
-</resources>
\ No newline at end of file
index d7784e6e15a542609e48b4bb697472a78160c6b1..300e30458d0047a690e8d629700c640e41edc662 100644 (file)
@@ -37,7 +37,6 @@
     <application
         android:label="@string/privacy_browser"
         android:icon="@mipmap/privacy_browser"
     <application
         android:label="@string/privacy_browser"
         android:icon="@mipmap/privacy_browser"
-        android:theme="@style/PrivacyBrowser"
         android:allowBackup="false"
         android:fullBackupContent="false"
         android:supportsRtl="true" >
         android:allowBackup="false"
         android:fullBackupContent="false"
         android:supportsRtl="true" >
@@ -47,7 +46,8 @@
             android:name="android.webkit.WebView.MetricsOptOut"
             android:value="true" />
 
             android:name="android.webkit.WebView.MetricsOptOut"
             android:value="true" />
 
-        <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
+        <!-- The theme has to be defined here or an ugly title bar is displayed when the app launches.
+            `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
             `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
             It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
             `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
             It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
@@ -55,6 +55,7 @@
         <activity
             android:name=".activities.MainWebViewActivity"
             android:label="@string/privacy_browser"
         <activity
             android:name=".activities.MainWebViewActivity"
             android:label="@string/privacy_browser"
+            android:theme="@style/PrivacyBrowserLight"
             android:configChanges="orientation|screenSize"
             android:launchMode="singleTask"
             android:screenOrientation="fullUser"
             android:configChanges="orientation|screenSize"
             android:launchMode="singleTask"
             android:screenOrientation="fullUser"
@@ -83,7 +84,7 @@
         <activity
             android:name=".activities.BookmarksActivity"
             android:label="@string/bookmarks"
         <activity
             android:name=".activities.BookmarksActivity"
             android:label="@string/bookmarks"
-            android:theme="@style/PrivacyBrowser.SecondaryActivity"
+            android:theme="@style/PrivacyBrowserLight.SecondaryActivity"
             android:parentActivityName=".activities.MainWebViewActivity"
             android:configChanges="orientation|screenSize"
             android:screenOrientation="fullUser"
             android:parentActivityName=".activities.MainWebViewActivity"
             android:configChanges="orientation|screenSize"
             android:screenOrientation="fullUser"
@@ -96,7 +97,7 @@
         <activity
             android:name=".activities.BookmarksDatabaseViewActivity"
             android:label="@string/bookmarks_database_view"
         <activity
             android:name=".activities.BookmarksDatabaseViewActivity"
             android:label="@string/bookmarks_database_view"
-            android:theme="@style/PrivacyBrowser.SecondaryActivity"
+            android:theme="@style/PrivacyBrowserLight.SecondaryActivity"
             android:parentActivityName=".activities.BookmarksActivity"
             android:configChanges="orientation|screenSize"
             android:screenOrientation="fullUser"
             android:parentActivityName=".activities.BookmarksActivity"
             android:configChanges="orientation|screenSize"
             android:screenOrientation="fullUser"
         <activity
             android:name=".activities.DomainsActivity"
             android:label="@string/domains"
         <activity
             android:name=".activities.DomainsActivity"
             android:label="@string/domains"
-            android:theme="@style/PrivacyBrowser.SecondaryActivity"
+            android:theme="@style/PrivacyBrowserLight.SecondaryActivity"
             android:parentActivityName=".activities.MainWebViewActivity"
             android:screenOrientation="fullUser"
             android:persistableMode="persistNever"
             android:parentActivityName=".activities.MainWebViewActivity"
             android:screenOrientation="fullUser"
             android:persistableMode="persistNever"
         <activity
             android:name=".activities.DomainSettingsActivity"
             android:label="@string/domain_settings"
         <activity
             android:name=".activities.DomainSettingsActivity"
             android:label="@string/domain_settings"
-            android:theme="@style/PrivacyBrowser.SecondaryActivity"
+            android:theme="@style/PrivacyBrowserLight.SecondaryActivity"
             android:parentActivityName=".activities.DomainsActivity"
             android:configChanges="orientation|screenSize"
             android:screenOrientation="fullUser"
             android:parentActivityName=".activities.DomainsActivity"
             android:configChanges="orientation|screenSize"
             android:screenOrientation="fullUser"
         <activity
             android:name=".activities.GuideActivity"
             android:label="@string/privacy_browser_guide"
         <activity
             android:name=".activities.GuideActivity"
             android:label="@string/privacy_browser_guide"
-            android:theme="@style/PrivacyBrowser.SecondaryActivity"
+            android:theme="@style/PrivacyBrowserLight.SecondaryActivity"
             android:parentActivityName=".activities.MainWebViewActivity"
             android:configChanges="orientation|screenSize"
             android:screenOrientation="fullUser"
             android:parentActivityName=".activities.MainWebViewActivity"
             android:configChanges="orientation|screenSize"
             android:screenOrientation="fullUser"
         <activity
             android:name=".activities.AboutActivity"
             android:label="@string/about_privacy_browser"
         <activity
             android:name=".activities.AboutActivity"
             android:label="@string/about_privacy_browser"
-            android:theme="@style/PrivacyBrowser.SecondaryActivity"
+            android:theme="@style/PrivacyBrowserLight.SecondaryActivity"
             android:parentActivityName=".activities.MainWebViewActivity"
             android:configChanges="orientation|screenSize"
             android:screenOrientation="fullUser"
             android:parentActivityName=".activities.MainWebViewActivity"
             android:configChanges="orientation|screenSize"
             android:screenOrientation="fullUser"
index f26e12fbb85187a262c100f86f442deaa0fb5ae3..3a742ca2f6f3f227afdd08433292b34f59a7ae68 100644 (file)
         <p><img class="icon" src="../en/images/ic_select_all.png"> ic_select_all.</p>
         <p><img class="icon" src="../en/images/ic_settings.png"> ic_settings.</p>
         <p><img class="icon" src="../en/images/ic_smartphone.png"> ic_smartphone.</p>
         <p><img class="icon" src="../en/images/ic_select_all.png"> ic_select_all.</p>
         <p><img class="icon" src="../en/images/ic_settings.png"> ic_settings.</p>
         <p><img class="icon" src="../en/images/ic_smartphone.png"> ic_smartphone.</p>
+        <p><img class="icon" src="../en/images/ic_style.png"> ic_style.</p>
         <p><img class="icon" src="../en/images/ic_subtitles.png"> ic_subtitles.</p>
         <p><img class="icon" src="../en/images/ic_text_fields.png"> ic_text_fields.</p>
         <p><img class="icon" src="../en/images/ic_vertical_align_bottom.png"> ic_vertical_align_bottom.</p>
         <p><img class="icon" src="../en/images/ic_subtitles.png"> ic_subtitles.</p>
         <p><img class="icon" src="../en/images/ic_text_fields.png"> ic_text_fields.</p>
         <p><img class="icon" src="../en/images/ic_vertical_align_bottom.png"> ic_vertical_align_bottom.</p>
index 5b858444240936fa74615d399f1e2c0377c3794c..4d742f155c668a49132cabee9454b9af609301c8 100644 (file)
         <p><img class="icon" src="images/ic_select_all.png"> ic_select_all.</p>
         <p><img class="icon" src="images/ic_settings.png"> ic_settings.</p>
         <p><img class="icon" src="images/ic_smartphone.png"> ic_smartphone.</p>
         <p><img class="icon" src="images/ic_select_all.png"> ic_select_all.</p>
         <p><img class="icon" src="images/ic_settings.png"> ic_settings.</p>
         <p><img class="icon" src="images/ic_smartphone.png"> ic_smartphone.</p>
+        <p><img class="icon" src="images/ic_style.png"> ic_style.</p>
         <p><img class="icon" src="images/ic_subtitles.png"> ic_subtitles.</p>
         <p><img class="icon" src="images/ic_text_fields.png"> ic_text_fields.</p>
         <p><img class="icon" src="images/ic_vertical_align_bottom.png"> ic_vertical_align_bottom.</p>
         <p><img class="icon" src="images/ic_subtitles.png"> ic_subtitles.</p>
         <p><img class="icon" src="images/ic_text_fields.png"> ic_text_fields.</p>
         <p><img class="icon" src="images/ic_vertical_align_bottom.png"> ic_vertical_align_bottom.</p>
diff --git a/app/src/main/assets/en/images/ic_style.png b/app/src/main/assets/en/images/ic_style.png
new file mode 100644 (file)
index 0000000..56b43c0
Binary files /dev/null and b/app/src/main/assets/en/images/ic_style.png differ
index 726f27405f1ae9a9001f49e556e4eada2412de52..47836aa38379ecb341d1157f697759157e5db1c3 100644 (file)
         <p><img class="icon" src="../en/images/ic_select_all.png"> ic_select_all.</p>
         <p><img class="icon" src="../en/images/ic_settings.png"> ic_settings.</p>
         <p><img class="icon" src="../en/images/ic_smartphone.png"> ic_smartphone.</p>
         <p><img class="icon" src="../en/images/ic_select_all.png"> ic_select_all.</p>
         <p><img class="icon" src="../en/images/ic_settings.png"> ic_settings.</p>
         <p><img class="icon" src="../en/images/ic_smartphone.png"> ic_smartphone.</p>
+        <p><img class="icon" src="../en/images/ic_style.png"> ic_style.</p>
         <p><img class="icon" src="../en/images/ic_subtitles.png"> ic_subtitles.</p>
         <p><img class="icon" src="../en/images/ic_text_fields.png"> ic_text_fields.</p>
         <p><img class="icon" src="../en/images/ic_vertical_align_bottom.png"> ic_vertical_align_bottom.</p>
         <p><img class="icon" src="../en/images/ic_subtitles.png"> ic_subtitles.</p>
         <p><img class="icon" src="../en/images/ic_text_fields.png"> ic_text_fields.</p>
         <p><img class="icon" src="../en/images/ic_vertical_align_bottom.png"> ic_vertical_align_bottom.</p>
index 585eca4a60ec5c24fc8b633ac38d0c88cf3ab4f0..44374ba5c68b7e140817f974259d22f269d47c03 100644 (file)
         <p><img class="icon" src="../en/images/ic_select_all.png"> ic_select_all.</p>
         <p><img class="icon" src="../en/images/ic_settings.png"> ic_settings.</p>
         <p><img class="icon" src="../en/images/ic_smartphone.png"> ic_smartphone.</p>
         <p><img class="icon" src="../en/images/ic_select_all.png"> ic_select_all.</p>
         <p><img class="icon" src="../en/images/ic_settings.png"> ic_settings.</p>
         <p><img class="icon" src="../en/images/ic_smartphone.png"> ic_smartphone.</p>
+        <p><img class="icon" src="../en/images/ic_style.png"> ic_style.</p>
         <p><img class="icon" src="../en/images/ic_subtitles.png"> ic_subtitles.</p>
         <p><img class="icon" src="../en/images/ic_text_fields.png"> ic_text_fields.</p>
         <p><img class="icon" src="../en/images/ic_vertical_align_bottom.png"> ic_vertical_align_bottom.</p>
         <p><img class="icon" src="../en/images/ic_subtitles.png"> ic_subtitles.</p>
         <p><img class="icon" src="../en/images/ic_text_fields.png"> ic_text_fields.</p>
         <p><img class="icon" src="../en/images/ic_vertical_align_bottom.png"> ic_vertical_align_bottom.</p>
diff --git a/app/src/main/assets/zh-rTW/about_changelog.html b/app/src/main/assets/zh-rTW/about_changelog.html
deleted file mode 100644 (file)
index e94b2e1..0000000
+++ /dev/null
@@ -1,281 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3>2.3 (version code 23)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=edbeafeb712ae0c2a217a130d940f6c8326ca2d0">26 May 2017</a> - minimum API 19, target API 25</p>
-        <ul>
-            <li><a href="https://redmine.stoutner.com/issues/127">Don’t include URL redirects</a> in the WebView history.</li>
-            <li>Add the option to <a href="https://redmine.stoutner.com/issues/123">disable loading of images</a> to conserve bandwidth.</li>
-            <li>Fix the layout of some web pages by using a <a href="https://redmine.stoutner.com/issues/113">wide viewport</a>.</li>
-            <li>Allow loading of <a href="https://redmine.stoutner.com/issues/128">host only URLs</a>.</li>
-            <li><a href="https://redmine.stoutner.com/issues/129">Add icons to the settings screen</a>.</li>
-            <li><a href="https://redmine.stoutner.com/issues/130">Add the title</a> to the URL when sharing through the options menu.</li>
-            <li>Disable the <a href="https://redmine.stoutner.com/issues/93">third-party cookies setting on KitKat</a> because it only works on Lollipop or newer.</li>
-            <li><a href="https://redmine.stoutner.com/issues/89">Move Refresh to the bottom</a> of the options menu.</li>
-            <li>Updated Italian translation provided by Francesco Buratti.</li>
-            <li>Updated Spanish translation provided by <a href="mailto:emails@joseleon.me">Jose A. León Becerra</a>.</li>
-        </ul>
-
-        <h3>2.2 (version code 22)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=1d8a8322dace658f69b80ad4d24f941074aa2200">27 April 2017</a> - minimum API 19, target API 25</p>
-        <ul>
-            <li>Create an <a href="https://redmine.stoutner.com/issues/116">Incognito Mode</a>, which deletes the cache and history after each website loads.</li>
-            <li>Combine the <a href="https://redmine.stoutner.com/issues/122">JavaScript-enabled and JavaScript-disabled search options</a> into one entry.</li>
-            <li>Display the erroneous sections of an <a href="https://redmine.stoutner.com/issues/53">SSL certificate error in red</a>.</li>
-            <li>Delete the entire <a href="https://redmine.stoutner.com/issues/114">private cache folder</a> on Clear and Exit.</li>
-            <li>Add a <a href="https://redmine.stoutner.com/issues/120">25% font zoom option</a>.</li>
-            <li>Fix a bug with Orbot if the <a href="https://redmine.stoutner.com/issues/118">homepage is blank</a>.</li>
-            <li>Remove Torch from the list of <a href="https://redmine.stoutner.com/issues/119">recommended Tor search engines</a> because it doesn’t support HTTPS.</li>
-            <li>Fix a display corruption if the Find on Page bar is displayed when <a href="https://redmine.stoutner.com/issues/121">Privacy Browser is resumed</a>.</li>
-            <li>Display the <a href="https://redmine.stoutner.com/issues/117">Orbot version</a> and <a href="https://redmine.stoutner.com/issues/115">APK package signature</a> in About → Version.</li>
-            <li>Update the <a href="https://www.stoutner.com/privacy-browser/privacy-policy/">privacy policy</a> to version 1.4.</li>
-            <li>Update the <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=blobdiff;f=app/src/main/assets/pgl.yoyo.org_adservers.txt;h=cd750892e52bf06e7295aa4b51ccb548de4571cd;hp=436a8b83f3142b231cf43b144a6659f869b2a3ab;hb=9ba6d8a73e76d1d65a9df80f101ff3092f946972;hpb=76a37e5ce26f7d4ebe57d38cecc842e4c6c15819">list of ad servers</a> from pgl.yoyo.org.</li>
-            <li>Updated Italian translation provided by Francesco Buratti.</li>
-            <li>Updated Spanish translation provided by <a href="mailto:emails@joseleon.me">Jose A. León Becerra</a>.</li>
-        </ul>
-
-        <h3>2.1 (version code 21)</h3>
-        <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>
-            <li>Fix a bug that <a href="https://redmine.stoutner.com/issues/92">prevented URLs with special characters from loading</a> from the URL box.</li>
-            <li><a href="https://redmine.stoutner.com/issues/103">Reset the favorite icon and website title</a> before loading a new domain.</li>
-            <li>Automatically <a href="https://redmine.stoutner.com/issues/111">select all text in the URL box</a> when the user taps on it.</li>
-            <li><a href="https://redmine.stoutner.com/issues/105">Reorder the main options menu items</a> by popularity.</li>
-            <li><a href="https://redmine.stoutner.com/issues/109">Reapply domain settings</a> after closing Settings or Domains.</li>
-            <li><a href="https://redmine.stoutner.com/issues/106">Round the corners of the custom domain settings highlight</a>.</li>
-            <li><a href="https://redmine.stoutner.com/issues/107">Move the progress bar</a> to the bottom of the app bar.</li>
-            <li>Updated Italian translation provided by Francesco Buratti.</li>
-            <li>Updated Spanish translation provided by <a href="mailto:emails@joseleon.me">Jose A. León Becerra</a>.</li>
-        </ul>
-
-        <h3>2.0.1 (version code 20)</h3>
-        <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>
-            <li>Reload domain settings when <a href="https://redmine.stoutner.com/issues/100">navigating with the back button</a>.</li>
-            <li><a href="https://redmine.stoutner.com/issues/98">Autopopulate the create bookmark and create shortcut dialogs</a>.</li>
-            <li>Updated Italian translation provided by Francesco Buratti.</li>
-            <li>Updated Spanish translation provided by <a href="mailto:emails@joseleon.me">Jose A. León Becerra</a>.</li>
-        </ul>
-
-        <h3>2.0 (version code 19)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=8f1c15606ef8cd277f51cc837c2c39667c48d0d4">16 March 2017</a> - minimum API 19, target API 25</p>
-        <ul>
-            <li>Implement <a href="https://redmine.stoutner.com/issues/7">custom domain settings</a>.</li>
-            <li>When proxying through Tor, <a href="https://redmine.stoutner.com/issues/90">wait until Orbot is ready</a> before attempting to load a page.</li>
-            <li><a href="https://redmine.stoutner.com/issues/87">Use .onion search engines</a> when proxying through Tor.</li>
-            <li>Updated Italian translation provided by Francesco Buratti.</li>
-            <li>Updated Spanish translation provided by <a href="mailto:emails@joseleon.me">Jose A. León Becerra</a>.</li>
-        </ul>
-
-        <h3>1.15 (version code 18)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=8f4d6373a35a43a36050ed383f58c4074143b264">11 February 2017</a> - minimum API 19, target API 25</p>
-        <ul>
-            <li>Delete the <a href="https://redmine.stoutner.com/issues/84">secret, undocumented WebView cache</a> on Clear and Exit.</li>
-            <li><a href="https://redmine.stoutner.com/issues/83">Automatically start Orbot</a> when proxying through Orbot is enabled.</li>
-            <li><a href="https://redmine.stoutner.com/issues/82">Localize the dates</a> on the SSL certificate dialogs.</li>
-            <li>Enable downloading of files from <a href="https://redmine.stoutner.com/issues/73">websites that require a login</a>. Code contributed by Hendrik Knackstedt.</li>
-            <li>Fix a crash when attempting to <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commit;h=da8974edd917b868957fa78bb3843fefb93b8cb7">download a file that does not have an HTTP or HTTPS URI</a>.</li>
-            <li>Initial Italian translation provided by Francesco Buratti.</li>
-            <li>Updated Spanish translation provided by <a href="mailto:emails@joseleon.me">Jose A. León Becerra</a>.</li>
-        </ul>
-
-        <h3>1.14.1 (version code 17)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=5bd318993ebf675433f514dd04fc3e29545c9312">4 January 2017</a> - minimum API 19, target API 25</p>
-        <ul>
-            <li>Fix a bug that caused Privacy Browser to <a href="https://redmine.stoutner.com/issues/80">crash on some websites</a> when ad blocking was enabled.</li>
-        </ul>
-
-        <h3>1.14 (version code 16)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=6d3d23ab62cfdd6ef142dbdb764a6bac8fc38ce1">26 December 2016</a> - minimum API 19, target API 25</p>
-        <ul>
-            <li>Implement <a href="https://redmine.stoutner.com/issues/31">ad blocking</a>.</li>
-            <li>Change the default user agent to PrivacyBrowser/1.0 <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=7f0fda47dbd040262a8149e1e6d27f7abe9043ea">for real this time</a>.</li>
-            <li>Change the default for <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=c3ec2515bf9a49d4561efc47f5d21106f15cb286">Do Not Track to be false</a>.</li>
-            <li>Add the option to <a href="https://redmine.stoutner.com/issues/75">enable full screen browsing mode</a> and set it to <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=blobdiff;f=app/src/main/res/xml/preferences.xml;h=cdda87e7c2eaa0cabdb6a1a77ffca1124e9423e1;hp=8ed81b84aab687621a0f08921c4f6165392d59d2;hb=743982f883eab347e4029f8a3be760f780b14da1;hpb=7f0fda47dbd040262a8149e1e6d27f7abe9043ea">false by default</a>.</li>
-            <li>Fix a bug that sometimes caused the <a href="https://redmine.stoutner.com/issues/74">navigation bar to turn gray in full screen mode</a> when switching between apps.</li>
-            <li>Bump <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=5c6db7b33577612ff7f120b30fb98cab8afa591f">target API to 25</a>.</li>
-            <li>Updated <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=blobdiff;f=app/src/main/res/values-es/strings.xml;h=83c162b389a075effb68c7ce41cd03482c7c8bce;hp=ff79b6a9f30dbe71a0a076cfcfdc0df834ebb792;hb=2c8e83a7d1a044a5186020ac17d3cefb22b7f330;hpb=e9ed376cc7890f1d1f2e370e2e63f19dcfd1859d">partial</a> <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=blob;f=app/src/main/assets/es/about_permissions.html;h=eab82ba8ee104e6a71776a557366f70660d28711;hb=2c8e83a7d1a044a5186020ac17d3cefb22b7f330">Spanish</a> <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=blobdiff;f=app/src/main/assets/es/about_changelog.html;h=ffb0e4895c0323ae4ee6ca11aab775b318a1b9ef;hp=f810cccc58ee840eb2704bcf81c9e3387d29ff2c;hb=c3ec2515bf9a49d4561efc47f5d21106f15cb286;hpb=2c8e83a7d1a044a5186020ac17d3cefb22b7f330">Translation</a>.</li>
-        </ul>
-
-        <h3>1.13 (version code 15)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=5a9cabddff240061fe521f01df3025b037e9da9e">28 November 2016</a> - minimum API 19, target API 24</p>
-        <ul>
-            <li>Double-tap for <a href="https://redmine.stoutner.com/issues/46">full screen browsing mode</a>.</li>
-            <li>Change the default user agent to <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=b0ddee839c666ba339e374749588f910070658ee">PrivacyBrowser/1.0</a>.</li>
-            <li>Add a <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=blobdiff;f=app/src/main/java/com/stoutner/privacybrowser/UrlHistory.java;h=ec0b45e455acc659acc7c303077bfcf4079ddad9;hp=d2d4fecde081bf3e4ee1327243f38212e9f40c3f;hb=ac6db897f8e99a28a7e2d916238fbdf7a021ac55;hpb=eb1e349d876e09e2b82e4eb9d6dc199147e1cde5">clear history button</a>.</li>
-            <li>Add <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=d45c5240d1a82d1a43742b6aea8173b520697520">Copy URL</a> to the URL context menu.</li>
-            <li>Make the back button <a href="https://redmine.stoutner.com/issues/60">navigate to the parent folder</a> in the bookmarks activity.</li>
-            <li>Update privacy policy to <a href="https://www.stoutner.com/updated-privacy-policy/">version 1.3</a>.</li>
-            <li>Partial <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=blobdiff;f=app/src/main/res/values-es/strings.xml;h=601da35d052ca3b36bedc4645c3db3189b3e1605;hp=09cc8c34e66b17e473d5d2b2ccb025c0f03b1804;hb=66213601459e6e2f739f2991581ffb0a1a1c0b43;hpb=3bd71cebfddb14b7adcbb39c5ab98f9ce90f8d9d">Spanish translation</a>.</li>
-            <li>Updated German translation provided by <a href="mailto:aaron@gerlach.com">Aaron Gerlach</a>.</li>
-        </ul>
-
-        <h3>1.12 (version code 14)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=3f2c7129a56e84d34cb07c151baf87bdea94dd12">9 November 2016</a> - minimum API 19, target API 24</p>
-        <ul>
-            <li>Add a <a href="https://redmine.stoutner.com/issues/24">forward and back history list</a>.</li>
-            <li>Long press now <a href="https://redmine.stoutner.com/issues/63">displays target URLs</a> and the option to <a href="https://redmine.stoutner.com/issues/10">view or download pictures</a>.</li>
-            <li>Added <a href="https://redmine.stoutner.com/issues/9">Find on Page</a>.</li>
-            <li>Completely <a href="https://redmine.stoutner.com/issues/69">remove Privacy Browser from RAM</a> on "Clear and Exit".</li>
-            <li>Fix a crash when <a href="https://redmine.stoutner.com/issues/70">displaying an SSL Certificate error</a> in Android KitKat and Lollipop.</li>
-            <li>Fix a crash on some file downloads caused by a <a href="https://redmine.stoutner.com/issues/71">failure to parse the Content-Disposition header</a> correctly.</li>
-            <li>Updated German translation provided by <a href="mailto:aaron@gerlach.com">Aaron Gerlach</a>.</li>
-        </ul>
-
-        <h3>1.11 (version code 13)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=d9974f13e3a4dad62f760e02e94d8782d6e4bb3d">22 October 2016</a> - minimum API 19, target API 24</p>
-        <ul>
-            <li>Bump target API to 24, which enables multi-window support on Nougat.</li>
-            <li>Fix a bug introduced in version 1.10 that consumed <a href="https://redmine.stoutner.com/issues/66">massive amounts of CPU</a> for no good reason.</li>
-            <li>Add <a href="https://redmine.stoutner.com/issues/18">printing support</a>.</li>
-            <li>Fix <a href="https://redmine.stoutner.com/issues/67">file downloading</a> on KitKat and Lollipop.</li>
-            <li>Updated German translation provided by <a href="mailto:aaron@gerlach.com">Aaron Gerlach</a>.</li>
-        </ul>
-
-        <h3>1.10 (version code 12)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=c9365866ad37cc2b0b0fa53ee04aaaa4740f70b7">15 September 2016</a> - minimum API 19, target API 23</p>
-        <ul>
-            <li>Add <a href="https://redmine.stoutner.com/issues/26">Tor Orbot proxy support</a>.</li>
-            <li>Add <a href="https://redmine.stoutner.com/issues/30">Do Not Track</a> support.</li>
-            <li>Add a <a href="https://redmine.stoutner.com/issues/58">download dialog</a> that allows users to <a href="https://redmine.stoutner.com/issues/59">modify the file name</a> before the download begins.</li>
-            <li>Add optional additional action buttons for cookies, DOM storage, and saved forms.</li>
-            <li>Update user agents and add Safari on iOS and OS X.</li>
-            <li>Add StartPage and Qwant to the list of search engines.</li>
-            <li>Updated German translation provided by <a href="mailto:aaron@gerlach.com">Aaron Gerlach</a>.</li>
-        </ul>
-
-        <h3>1.9.1 (version code 11)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=6de831ce03c8b9114212870715c6c722e26f5b28">27 August 2016</a> - minimum API 19, target API 23</p>
-        <ul>
-            <li>Changed asset image links to relative paths so Privacy Browser will build on F-Droid.</li>
-        </ul>
-
-        <h3>1.9 (version code 10)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=7c6dae59026beeb9e32fcc4d6706129f8bee029c">26 August 2016</a> - minimum API 19, target API 23</p>
-        <ul>
-            <li>German translation provided by <a href="mailto:aaron@gerlach.com">Aaron Gerlach</a>.</li>
-            <li>Add the ability to <a href="https://redmine.stoutner.com/issues/2">view SSL certificate details and SSL error messages</a>. This allows Privacy Browser to load web pages with self-signed certificates.</li>
-            <li>Add <a href="https://redmine.stoutner.com/issues/38">font size controls</a>.</li>
-            <li>Handle <a href="https://redmine.stoutner.com/issues/14">"mailto:" links</a> on websites.</li>
-            <li>Fix a crash when <a href="https://redmine.stoutner.com/issues/47">creating or editing a bookmark with no favorite icon</a>.</li>
-            <li>Fix a bug that sometimes <a href="https://redmine.stoutner.com/issues/28">disabled the navigation drawer after exiting a full screen video</a>.</li>
-            <li>Send a <a href="https://redmine.stoutner.com/issues/37">null value for the "X-Requested-With" header on initial page load</a>.</li>
-        </ul>
-
-        <h3>1.8 (version code 9)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=f386169ee9c68325562068394cb6b21b0b89be1c">16 July 2016</a> - minimum API 19, target API 23</p>
-        <ul>
-            <li>Add a <a href="https://redmine.stoutner.com/issues/16">bookmarks interface</a>.</li>
-            <li>Add <a href="https://redmine.stoutner.com/issues/29">basic controls for form data</a>.</li>
-            <li>Fix a bug that <a href="https://redmine.stoutner.com/issues/40">prevented editing the custom user agent</a>.</li>
-            <li>Fix a bug that <a href="https://redmine.stoutner.com/issues/33">prevented URLs from loading if there are whitespaces at the beginning or end</a>.</li>
-        </ul>
-
-
-        <h3>1.7 (version code 8)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=347e702f50a02782add9400afa552fbee1cf7ab6;ds=inline">16 June 2016</a> - minimum API 19, target API 23</p>
-        <ul>
-            <li>Create an <a href="https://redmine.stoutner.com/issues/15">About activity with a TabView</a>.</li>
-            <li>Create a Guide activity with a TabView.</li>
-            <li>Bump the minimum API from 15 to 19 due to <a href="https://freedom-to-tinker.com/blog/dwallach/android-webview-security-and-the-mobile-advertising-marketplace/">
-                security concerns</a> regarding older versions of WebView.</li>
-        </ul>
-
-
-        <h3>1.6 (version code 7)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=151e4550065da8e740e8e3bd414ec30ae2a18c33">11 May 2016</a> - minimum API 15, target API 23</p>
-        <ul>
-            <li>Add a setting to <a href="https://redmine.stoutner.com/issues/4">customize the search URLs</a>.</li>
-            <li>Add a setting to <a href="https://redmine.stoutner.com/issues/3">customize the browser’s user agent</a>.</li>
-        </ul>
-
-
-        <h3>1.5 (version code 6)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=b0a048867d5582bc693ba8699a75aa93b4fa1b69">5 May 2016</a> - minimum API 15, target API 23</p>
-        <ul>
-            <li>Add the option to disable swipe to refresh so that certain websites, like Google Maps, will function correctly.</li>
-        </ul>
-
-
-        <h3>1.4 (version code 5)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=58e6c22da860871eadd1cbf214a30e88ced4f19e">28 April 2016</a> - minimum API 15, target API 23</p>
-        <ul>
-            <li>Add controls for <a href="https://redmine.stoutner.com/issues/21">third-party cookies</a>.</li>
-            <li>Fix full screen video playback.</li>
-        </ul>
-
-
-        <h3>1.3 (version code 4)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=4f704be746c00c0a29a52c28646e6d7cf2f9c53c">7 April 2016</a> - minimum API 15, target API 23</p>
-        <ul>
-            <li>Create a <a href="https://redmine.stoutner.com/issues/17">navigation drawer</a>.</li>
-        </ul>
-
-
-        <h3>1.2 (version code 3)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=bde6908fee004715f0125ab2d51016dd63a956f4">23 March 2016</a> - minimum API 15, target API 23</p>
-        <ul>
-            <li>Update launcher icon to make it bigger.</li>
-            <li>Replace all toast messages with <a href="https://redmine.stoutner.com/issues/12">snackbars</a>.</li>
-            <li><a href="https://redmine.stoutner.com/issues/11">Don't update the URL box if the user is typing in it</a>.</li>
-            <li>Bump the minimum API from 10 to 15. Privacy Browser was crashing on load in API 10.</li>
-        </ul>
-
-
-        <h3>1.1 (version code 2)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=f56d4111a627bebdb7f181da062253b3e6145381">9 March 2016</a> - minimum API 10, target API 23</p>
-        <ul>
-            <li>Separate the standard and the free flavors so that Privacy Browser builds correctly on F-Droid.</li>
-        </ul>
-
-
-        <h3>1.0 (version code 1)</h3>
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=6f7130bc4218755bea242a2108e4c4ad6f63dcf9">24 February 2016</a> - minimum API 10, target API 23</p>
-        <ul>
-            <li>Toggle JavaScript, DOM storage, and cookies.</li>
-            <li>Set default enabled status for JavaScript, DOM storage, and cookies.</li>
-            <li>Clear DOM storage and cookies.</li>
-            <li>Add shortcuts to the home screen.</li>
-            <li>Utilize download manager.</li>
-            <li>Navigate forward and back.</li>
-            <li>Cut, copy, paste URLs.</li>
-            <li>Share URLs.</li>
-            <li>Set homepage.</li>
-            <li>Scroll URL bar.</li>
-            <li>Maintain WebView scroll location when rotating screen.</li>
-            <li>Swipe to refresh WebView.</li>
-            <li>Play full screen videos (requires JavaScript to be enabled).</li>
-            <li>Clear and Exit menu item.</li>
-        </ul>
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/main/assets/zh-rTW/about_contributors.html b/app/src/main/assets/zh-rTW/about_contributors.html
deleted file mode 100644 (file)
index 251b052..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3>Principal Developer</h3>
-        <p>Privacy Browser is primarily developed by <a href="mailto:soren@stoutner.com">Soren Stoutner</a>.</p>
-
-        <h3>Coders</h3>
-        <a href="mailto:lianergoist@vongriffen.dk">Thomas Jensen</a><br/>
-        Hendrik Knackstedt
-
-        <h3>Translators</h3>
-        Francesco Buratti: Italian<br/>
-        <a href="mailto:emails@joseleon.me">Jose A. León Becerra</a>: Spanish
-
-        <h3>Past Translators</h3>
-        <a href="mailto:aaron@gerlach.com">Aaron Gerlach</a>: German<br/>
-
-        <br/>
-        <p>Contributors are welcome to submit both <a href="https://www.stoutner.com/privacy-browser/contributors/">code and translations</a>.</p>
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/main/assets/zh-rTW/about_licenses.html b/app/src/main/assets/zh-rTW/about_licenses.html
deleted file mode 100644 (file)
index 5226d73..0000000
+++ /dev/null
@@ -1,1057 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-
-            img.icon {
-                vertical-align: middle;
-                height: 32;
-                width: 32;
-            }
-
-            img.left {
-                float: left;
-                height: 32;
-                width: 32;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3>Copyright</h3>
-        <p>Privacy Browser copyright © 2015-2017 <a href="mailto:soren@stoutner.com">Soren Stoutner</a>.</p>
-
-        <h3>License</h3>
-        <p>Privacy Browser is released under the <a href="https://www.gnu.org/licenses/gpl-3.0.html">GPLv3+ license</a>. The full text of the license is below.
-            The source code is available from <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=summary">git.stoutner.com</a>.</p>
-
-        <h3>Attributions</h3>
-        <p>The list of ad servers used by the ad blocker comes from <a href="https://pgl.yoyo.org/adservers/">pgl.yoyo.org</a>.
-            Because a list of domain names is a list of facts, it <a href="https://www.copyright.gov/help/faq/faq-protect.html">cannot be copyrighted</a>.</p>
-        <p><img class="left" src="../en/images/privacy_browser.png">
-            <img class="left" src="../en/images/privacy_browser_free.png">
-            <img class="left" src="../en/images/warning.png">
-            <img class="left" src="../en/images/javascript_enabled.png">
-            are derived from ic_security and ic_language, which are part of the <a href="https://material.io/icons/">Android Material icon set</a> and are released under the <a href ="https://www.apache.org/licenses/LICENSE-2.0">Apache License 2.0</a>.
-            The full text of the license is below. Modifications copyright © 2016 <a href="mailto:soren@stoutner.com">Soren Stoutner</a>. The resulting images are released under the <a href="https://www.gnu.org/licenses/gpl-3.0.html">GPLv3+ license</a>.</p>
-        <p><img class="left" src="../en/images/orbot.png"> orbot is a modified version of <a href="https://gitweb.torproject.org/orbot.git/tree/app/src/main/res/drawable-xxxhdpi/ic_stat_tor.png">the status icon from the Orbot project</a>, which is copyright
-            2009-2010 Nathan Freitas, The Guardian Project. It is released under the <a href="https://gitweb.torproject.org/orbot.git/tree/LICENSE">3-clause BSD license</a>.
-            The full text of the license is below. Modifications copyright © 2017 <a href="mailto:soren@stoutner.com">Soren Stoutner</a>. The resulting image is released under the <a href="https://www.gnu.org/licenses/gpl-3.0.html">GPLv3+ license</a>.</p>
-        <p><img class="left" src="../en/images/cookie.png"> cookie was created by Google. It is released under the <a href ="https://www.apache.org/licenses/LICENSE-2.0">Apache License 2.0</a>
-            and can be downloaded from <a href="https://materialdesignicons.com/icon/cookie">Material Design Icons</a>. It is unchanged except for layout information like color and size.</p>
-        <p>The following icons come from the <a href="https://material.io/icons/">Android Material icon set</a>, which is released under the <a href ="https://www.apache.org/licenses/LICENSE-2.0">Apache License 2.0</a>. They are unchanged except for layout
-            information like color and size. Some of them have been renamed to match their use in the code. The original icons and names are shown below.</p>
-        <p><img class="icon" src="../en/images/ic_add.png"> ic_add.</p>
-        <p><img class="icon" src="../en/images/ic_arrow_back.png"> ic_arrow_back.</p>
-        <p><img class="icon" src="../en/images/ic_arrow_forward.png"> ic_arrow_forward.</p>
-        <p><img class="icon" src="../en/images/ic_bookmark_border.png"> ic_bookmark_border.</p>
-        <p><img class="icon" src="../en/images/ic_bug_report.png"> ic_bug_report.</p>
-        <p><img class="icon" src="../en/images/ic_call_to_action.png"> ic_call_to_action.</p>
-        <p><img class="icon" src="../en/images/ic_chrome_reader_mode.png"> ic_chrome_reader_mode.</p>
-        <p><img class="icon" src="../en/images/ic_close.png"> ic_close.</p>
-        <p><img class="icon" src="../en/images/ic_create_new_folder.png"> ic_create_new_folder.</p>
-        <p><img class="icon" src="../en/images/ic_devices_other.png"> ic_devices_other.</p>
-        <p><img class="icon" src="../en/images/ic_delete.png"> ic_delete.</p>
-        <p><img class="icon" src="../en/images/ic_delete_forever.png"> ic_delete_forever.</p>
-        <p><img class="icon" src="../en/images/ic_dns.png"> ic_dns.</p>
-        <p><img class="icon" src="../en/images/ic_donut_small.png"> ic_donut_small.</p>
-        <p><img class="icon" src="../en/images/ic_edit.png"> ic_edit.</p>
-        <p><img class="icon" src="../en/images/ic_exit_to_app.png"> ic_exit_to_app.</p>
-        <p><img class="icon" src="../en/images/ic_expand_less.png"> ic_expand_less.</p>
-        <p><img class="icon" src="../en/images/ic_expand_more.png"> ic_expand_more.</p>
-        <p><img class="icon" src="../en/images/ic_file_download.png"> ic_file_download.</p>
-        <p><img class="icon" src="../en/images/ic_find_in_page.png"> ic_find_in_page.</p>
-        <p><img class="icon" src="../en/images/ic_folder.png"> ic_folder.</p>
-        <p><img class="icon" src="../en/images/ic_folder_special.png"> ic_folder_special.</p>
-        <p><img class="icon" src="../en/images/ic_fullscreen.png"> ic_fullscreen.</p>
-        <p><img class="icon" src="../en/images/ic_home.png"> ic_home.</p>
-        <p><img class="icon" src="../en/images/ic_image.png"> ic_image.</p>
-        <p><img class="icon" src="../en/images/ic_import_contacts.png"> ic_import_contacts.</p>
-        <p><img class="icon" src="../en/images/ic_important_devices.png"> ic_important_devices.</p>
-        <p><img class="icon" src="../en/images/ic_info_outline.png"> ic_info_outline.</p>
-        <p><img class="icon" src="../en/images/ic_language.png"> ic_language.</p>
-        <p><img class="icon" src="../en/images/ic_list.png"> ic_list.</p>
-        <p><img class="icon" src="../en/images/ic_local_activity.png"> ic_local_activity.</p>
-        <p><img class="icon" src="../en/images/ic_location_off.png"> ic_location_off.</p>
-        <p><img class="icon" src="../en/images/ic_map.png"> ic_map.</p>
-        <p><img class="icon" src="../en/images/ic_more.png"> ic_more.</p>
-        <p><img class="icon" src="../en/images/ic_question_answer.png"> ic_question_answer.</p>
-        <p><img class="icon" src="../en/images/ic_refresh.png"> ic_refresh.</p>
-        <p><img class="icon" src="../en/images/ic_search.png"> ic_search.</p>
-        <p><img class="icon" src="../en/images/ic_select_all.png"> ic_select_all.</p>
-        <p><img class="icon" src="../en/images/ic_settings.png"> ic_settings.</p>
-        <p><img class="icon" src="../en/images/ic_smartphone.png"> ic_smartphone.</p>
-        <p><img class="icon" src="../en/images/ic_subtitles.png"> ic_subtitles.</p>
-        <p><img class="icon" src="../en/images/ic_text_fields.png"> ic_text_fields.</p>
-        <p><img class="icon" src="../en/images/ic_vertical_align_bottom.png"> ic_vertical_align_bottom.</p>
-        <p><img class="icon" src="../en/images/ic_vertical_align_top.png"> ic_vertical_align_top.</p>
-        <p><img class="icon" src="../en/images/ic_visibility_off.png"> ic_visibility_off.</p>
-        <p><img class="icon" src="../en/images/ic_web.png"> ic_web.</p>
-
-        <hr/>
-
-        <h3>GNU General Public License</h3>
-        <p>Version 3, 29 June 2007</p>
-
-        <p>Copyright © 2007 Free Software Foundation, Inc.
-            <<a href="http://fsf.org/">http://fsf.org/</a>></p>
-
-        <p>Everyone is permitted to copy and distribute verbatim copies
-            of this license document, but changing it is not allowed.</p>
-
-        <h3>Preamble</h3>
-
-        <p>The GNU General Public License is a free, copyleft license for
-            software and other kinds of works.</p>
-
-        <p>The licenses for most software and other practical works are designed
-            to take away your freedom to share and change the works.  By contrast,
-            the GNU General Public License is intended to guarantee your freedom to
-            share and change all versions of a program—to make sure it remains free
-            software for all its users.  We, the Free Software Foundation, use the
-            GNU General Public License for most of our software; it applies also to
-            any other work released this way by its authors.  You can apply it to
-            your programs, too.</p>
-
-        <p>When we speak of free software, we are referring to freedom, not
-            price.  Our General Public Licenses are designed to make sure that you
-            have the freedom to distribute copies of free software (and charge for
-            them if you wish), that you receive source code or can get it if you
-            want it, that you can change the software or use pieces of it in new
-            free programs, and that you know you can do these things.</p>
-
-        <p>To protect your rights, we need to prevent others from denying you
-            these rights or asking you to surrender the rights.  Therefore, you have
-            certain responsibilities if you distribute copies of the software, or if
-            you modify it: responsibilities to respect the freedom of others.</p>
-
-        <p>For example, if you distribute copies of such a program, whether
-            gratis or for a fee, you must pass on to the recipients the same
-            freedoms that you received.  You must make sure that they, too, receive
-            or can get the source code.  And you must show them these terms so they
-            know their rights.</p>
-
-        <p>Developers that use the GNU GPL protect your rights with two steps:
-            (1) assert copyright on the software, and (2) offer you this License
-            giving you legal permission to copy, distribute and/or modify it.</p>
-
-        <p>For the developers’ and authors’ protection, the GPL clearly explains
-            that there is no warranty for this free software.  For both users’ and
-            authors’ sake, the GPL requires that modified versions be marked as
-            changed, so that their problems will not be attributed erroneously to
-            authors of previous versions.</p>
-
-        <p>Some devices are designed to deny users access to install or run
-            modified versions of the software inside them, although the manufacturer
-            can do so.  This is fundamentally incompatible with the aim of
-            protecting users’ freedom to change the software.  The systematic
-            pattern of such abuse occurs in the area of products for individuals to
-            use, which is precisely where it is most unacceptable.  Therefore, we
-            have designed this version of the GPL to prohibit the practice for those
-            products.  If such problems arise substantially in other domains, we
-            stand ready to extend this provision to those domains in future versions
-            of the GPL, as needed to protect the freedom of users.</p>
-
-        <p>Finally, every program is threatened constantly by software patents.
-            States should not allow patents to restrict development and use of
-            software on general-purpose computers, but in those that do, we wish to
-            avoid the special danger that patents applied to a free program could
-            make it effectively proprietary.  To prevent this, the GPL assures that
-            patents cannot be used to render the program non-free.</p>
-
-        <p>The precise terms and conditions for copying, distribution and
-            modification follow.</p>
-
-        <h3>TERMS AND CONDITIONS</h3>
-
-        <h4>0. Definitions.</h4>
-
-        <p>“This License” refers to version 3 of the GNU General Public License.</p>
-
-        <p>“Copyright” also means copyright-like laws that apply to other kinds of
-            works, such as semiconductor masks.</p>
-
-        <p>“The Program” refers to any copyrightable work licensed under this
-            License.  Each licensee is addressed as “you”.  “Licensees” and
-            “recipients” may be individuals or organizations.</p>
-
-        <p>To “modify” a work means to copy from or adapt all or part of the work
-            in a fashion requiring copyright permission, other than the making of an
-            exact copy.  The resulting work is called a “modified version” of the
-            earlier work or a work “based on” the earlier work.</p>
-
-        <p>A “covered work” means either the unmodified Program or a work based
-            on the Program.</p>
-
-        <p>To “propagate” a work means to do anything with it that, without
-            permission, would make you directly or secondarily liable for
-            infringement under applicable copyright law, except executing it on a
-            computer or modifying a private copy.  Propagation includes copying,
-            distribution (with or without modification), making available to the
-            public, and in some countries other activities as well.</p>
-
-        <p>To “convey” a work means any kind of propagation that enables other
-            parties to make or receive copies.  Mere interaction with a user through
-            a computer network, with no transfer of a copy, is not conveying.</p>
-
-        <p>An interactive user interface displays “Appropriate Legal Notices”
-            to the extent that it includes a convenient and prominently visible
-            feature that (1) displays an appropriate copyright notice, and (2)
-            tells the user that there is no warranty for the work (except to the
-            extent that warranties are provided), that licensees may convey the
-            work under this License, and how to view a copy of this License.  If
-            the interface presents a list of user commands or options, such as a
-            menu, a prominent item in the list meets this criterion.</p>
-
-        <h4>1. Source Code.</h4>
-
-        <p>The “source code” for a work means the preferred form of the work
-            for making modifications to it.  “Object code” means any non-source
-            form of a work.</p>
-
-        <p>A “Standard Interface” means an interface that either is an official
-            standard defined by a recognized standards body, or, in the case of
-            interfaces specified for a particular programming language, one that
-            is widely used among developers working in that language.</p>
-
-        <p>The “System Libraries” of an executable work include anything, other
-            than the work as a whole, that (a) is included in the normal form of
-            packaging a Major Component, but which is not part of that Major
-            Component, and (b) serves only to enable use of the work with that
-            Major Component, or to implement a Standard Interface for which an
-            implementation is available to the public in source code form.  A
-            “Major Component”, in this context, means a major essential component
-            (kernel, window system, and so on) of the specific operating system
-            (if any) on which the executable work runs, or a compiler used to
-            produce the work, or an object code interpreter used to run it.</p>
-
-        <p>The “Corresponding Source” for a work in object code form means all
-            the source code needed to generate, install, and (for an executable
-            work) run the object code and to modify the work, including scripts to
-            control those activities.  However, it does not include the work’s
-            System Libraries, or general-purpose tools or generally available free
-            programs which are used unmodified in performing those activities but
-            which are not part of the work.  For example, Corresponding Source
-            includes interface definition files associated with source files for
-            the work, and the source code for shared libraries and dynamically
-            linked subprograms that the work is specifically designed to require,
-            such as by intimate data communication or control flow between those
-            subprograms and other parts of the work.</p>
-
-        <p>The Corresponding Source need not include anything that users
-            can regenerate automatically from other parts of the Corresponding
-            Source.</p>
-
-        <p>The Corresponding Source for a work in source code form is that
-            same work.</p>
-
-        <h4>2. Basic Permissions.</h4>
-
-        <p>All rights granted under this License are granted for the term of
-            copyright on the Program, and are irrevocable provided the stated
-            conditions are met.  This License explicitly affirms your unlimited
-            permission to run the unmodified Program.  The output from running a
-            covered work is covered by this License only if the output, given its
-            content, constitutes a covered work.  This License acknowledges your
-            rights of fair use or other equivalent, as provided by copyright law.</p>
-
-        <p>You may make, run and propagate covered works that you do not
-            convey, without conditions so long as your license otherwise remains
-            in force.  You may convey covered works to others for the sole purpose
-            of having them make modifications exclusively for you, or provide you
-            with facilities for running those works, provided that you comply with
-            the terms of this License in conveying all material for which you do
-            not control copyright.  Those thus making or running the covered works
-            for you must do so exclusively on your behalf, under your direction
-            and control, on terms that prohibit them from making any copies of
-            your copyrighted material outside their relationship with you.</p>
-
-        <p>Conveying under any other circumstances is permitted solely under
-            the conditions stated below.  Sublicensing is not allowed; section 10
-            makes it unnecessary.</p>
-
-        <h4>3. Protecting Users’ Legal Rights From Anti-Circumvention Law.</h4>
-
-        <p>No covered work shall be deemed part of an effective technological
-            measure under any applicable law fulfilling obligations under article
-            11 of the WIPO copyright treaty adopted on 20 December 1996, or
-            similar laws prohibiting or restricting circumvention of such
-            measures.</p>
-
-        <p>When you convey a covered work, you waive any legal power to forbid
-            circumvention of technological measures to the extent such circumvention
-            is effected by exercising rights under this License with respect to
-            the covered work, and you disclaim any intention to limit operation or
-            modification of the work as a means of enforcing, against the work’s
-            users, your or third parties’ legal rights to forbid circumvention of
-            technological measures.</p>
-
-        <h4>4. Conveying Verbatim Copies.</h4>
-
-        <p>You may convey verbatim copies of the Program’s source code as you
-            receive it, in any medium, provided that you conspicuously and
-            appropriately publish on each copy an appropriate copyright notice;
-            keep intact all notices stating that this License and any
-            non-permissive terms added in accord with section 7 apply to the code;
-            keep intact all notices of the absence of any warranty; and give all
-            recipients a copy of this License along with the Program.</p>
-
-        <p>You may charge any price or no price for each copy that you convey,
-            and you may offer support or warranty protection for a fee.</p>
-
-        <h4>5. Conveying Modified Source Versions.</h4>
-
-        <p>You may convey a work based on the Program, or the modifications to
-            produce it from the Program, in the form of source code under the
-            terms of section 4, provided that you also meet all of these conditions:</p>
-
-        <ul>
-            <li>a) The work must carry prominent notices stating that you modified
-                it, and giving a relevant date.</li>
-
-            <li>b) The work must carry prominent notices stating that it is
-                released under this License and any conditions added under section
-                7.  This requirement modifies the requirement in section 4 to
-                “keep intact all notices”.</li>
-
-            <li>c) You must license the entire work, as a whole, under this
-                License to anyone who comes into possession of a copy.  This
-                License will therefore apply, along with any applicable section 7
-                additional terms, to the whole of the work, and all its parts,
-                regardless of how they are packaged.  This License gives no
-                permission to license the work in any other way, but it does not
-                invalidate such permission if you have separately received it.</li>
-
-            <li>d) If the work has interactive user interfaces, each must display
-                Appropriate Legal Notices; however, if the Program has interactive
-                interfaces that do not display Appropriate Legal Notices, your
-                work need not make them do so.</li>
-        </ul>
-
-        <p>A compilation of a covered work with other separate and independent
-            works, which are not by their nature extensions of the covered work,
-            and which are not combined with it such as to form a larger program,
-            in or on a volume of a storage or distribution medium, is called an
-            “aggregate” if the compilation and its resulting copyright are not
-            used to limit the access or legal rights of the compilation’s users
-            beyond what the individual works permit.  Inclusion of a covered work
-            in an aggregate does not cause this License to apply to the other
-            parts of the aggregate.</p>
-
-        <h4>6. Conveying Non-Source Forms.</h4>
-
-        <p>You may convey a covered work in object code form under the terms
-            of sections 4 and 5, provided that you also convey the
-            machine-readable Corresponding Source under the terms of this License,
-            in one of these ways:</p>
-
-        <ul>
-            <li>a) Convey the object code in, or embodied in, a physical product
-                (including a physical distribution medium), accompanied by the
-                Corresponding Source fixed on a durable physical medium
-                customarily used for software interchange.</li>
-
-            <li>b) Convey the object code in, or embodied in, a physical product
-                (including a physical distribution medium), accompanied by a
-                written offer, valid for at least three years and valid for as
-                long as you offer spare parts or customer support for that product
-                model, to give anyone who possesses the object code either (1) a
-                copy of the Corresponding Source for all the software in the
-                product that is covered by this License, on a durable physical
-                medium customarily used for software interchange, for a price no
-                more than your reasonable cost of physically performing this
-                conveying of source, or (2) access to copy the
-                Corresponding Source from a network server at no charge.</li>
-
-            <li>c) Convey individual copies of the object code with a copy of the
-                written offer to provide the Corresponding Source.  This
-                alternative is allowed only occasionally and noncommercially, and
-                only if you received the object code with such an offer, in accord
-                with subsection 6b.</li>
-
-            <li>d) Convey the object code by offering access from a designated
-                place (gratis or for a charge), and offer equivalent access to the
-                Corresponding Source in the same way through the same place at no
-                further charge.  You need not require recipients to copy the
-                Corresponding Source along with the object code.  If the place to
-                copy the object code is a network server, the Corresponding Source
-                may be on a different server (operated by you or a third party)
-                that supports equivalent copying facilities, provided you maintain
-                clear directions next to the object code saying where to find the
-                Corresponding Source.  Regardless of what server hosts the
-                Corresponding Source, you remain obligated to ensure that it is
-                available for as long as needed to satisfy these requirements.</li>
-
-            <li>e) Convey the object code using peer-to-peer transmission, provided
-                you inform other peers where the object code and Corresponding
-                Source of the work are being offered to the general public at no
-                charge under subsection 6d.</li>
-        </ul>
-
-        <p>A separable portion of the object code, whose source code is excluded
-            from the Corresponding Source as a System Library, need not be
-            included in conveying the object code work.</p>
-
-        <p>A “User Product” is either (1) a “consumer product”, which means any
-            tangible personal property which is normally used for personal, family,
-            or household purposes, or (2) anything designed or sold for incorporation
-            into a dwelling.  In determining whether a product is a consumer product,
-            doubtful cases shall be resolved in favor of coverage.  For a particular
-            product received by a particular user, “normally used” refers to a
-            typical or common use of that class of product, regardless of the status
-            of the particular user or of the way in which the particular user
-            actually uses, or expects or is expected to use, the product.  A product
-            is a consumer product regardless of whether the product has substantial
-            commercial, industrial or non-consumer uses, unless such uses represent
-            the only significant mode of use of the product.</p>
-
-        <p>“Installation Information” for a User Product means any methods,
-            procedures, authorization keys, or other information required to install
-            and execute modified versions of a covered work in that User Product from
-            a modified version of its Corresponding Source.  The information must
-            suffice to ensure that the continued functioning of the modified object
-            code is in no case prevented or interfered with solely because
-            modification has been made.</p>
-
-        <p>If you convey an object code work under this section in, or with, or
-            specifically for use in, a User Product, and the conveying occurs as
-            part of a transaction in which the right of possession and use of the
-            User Product is transferred to the recipient in perpetuity or for a
-            fixed term (regardless of how the transaction is characterized), the
-            Corresponding Source conveyed under this section must be accompanied
-            by the Installation Information.  But this requirement does not apply
-            if neither you nor any third party retains the ability to install
-            modified object code on the User Product (for example, the work has
-            been installed in ROM).</p>
-
-        <p>The requirement to provide Installation Information does not include a
-            requirement to continue to provide support service, warranty, or updates
-            for a work that has been modified or installed by the recipient, or for
-            the User Product in which it has been modified or installed.  Access to a
-            network may be denied when the modification itself materially and
-            adversely affects the operation of the network or violates the rules and
-            protocols for communication across the network.</p>
-
-        <p>Corresponding Source conveyed, and Installation Information provided,
-            in accord with this section must be in a format that is publicly
-            documented (and with an implementation available to the public in
-            source code form), and must require no special password or key for
-            unpacking, reading or copying.</p>
-
-        <h4>7. Additional Terms.</h4>
-
-        <p>“Additional permissions” are terms that supplement the terms of this
-            License by making exceptions from one or more of its conditions.
-            Additional permissions that are applicable to the entire Program shall
-            be treated as though they were included in this License, to the extent
-            that they are valid under applicable law.  If additional permissions
-            apply only to part of the Program, that part may be used separately
-            under those permissions, but the entire Program remains governed by
-            this License without regard to the additional permissions.</p>
-
-        <p>When you convey a copy of a covered work, you may at your option
-            remove any additional permissions from that copy, or from any part of
-            it.  (Additional permissions may be written to require their own
-            removal in certain cases when you modify the work.)  You may place
-            additional permissions on material, added by you to a covered work,
-            for which you have or can give appropriate copyright permission.</p>
-
-        <p>Notwithstanding any other provision of this License, for material you
-            add to a covered work, you may (if authorized by the copyright holders of
-            that material) supplement the terms of this License with terms:</p>
-
-        <ul>
-            <li>a) Disclaiming warranty or limiting liability differently from the
-                terms of sections 15 and 16 of this License; or</li>
-
-            <li>b) Requiring preservation of specified reasonable legal notices or
-                author attributions in that material or in the Appropriate Legal
-                Notices displayed by works containing it; or</li>
-
-            <li>c) Prohibiting misrepresentation of the origin of that material, or
-                requiring that modified versions of such material be marked in
-                reasonable ways as different from the original version; or</li>
-
-            <li>d) Limiting the use for publicity purposes of names of licensors or
-                authors of the material; or</li>
-
-            <li>e) Declining to grant rights under trademark law for use of some
-                trade names, trademarks, or service marks; or</li>
-
-            <li>f) Requiring indemnification of licensors and authors of that
-                material by anyone who conveys the material (or modified versions of
-                it) with contractual assumptions of liability to the recipient, for
-                any liability that these contractual assumptions directly impose on
-                those licensors and authors.</li>
-        </ul>
-
-        <p>All other non-permissive additional terms are considered “further
-            restrictions” within the meaning of section 10.  If the Program as you
-            received it, or any part of it, contains a notice stating that it is
-            governed by this License along with a term that is a further
-            restriction, you may remove that term.  If a license document contains
-            a further restriction but permits relicensing or conveying under this
-            License, you may add to a covered work material governed by the terms
-            of that license document, provided that the further restriction does
-            not survive such relicensing or conveying.</p>
-
-        <p>If you add terms to a covered work in accord with this section, you
-            must place, in the relevant source files, a statement of the
-            additional terms that apply to those files, or a notice indicating
-            where to find the applicable terms.</p>
-
-        <p>Additional terms, permissive or non-permissive, may be stated in the
-            form of a separately written license, or stated as exceptions;
-            the above requirements apply either way.</p>
-
-        <h4>8. Termination.</h4>
-
-        <p>You may not propagate or modify a covered work except as expressly
-            provided under this License.  Any attempt otherwise to propagate or
-            modify it is void, and will automatically terminate your rights under
-            this License (including any patent licenses granted under the third
-            paragraph of section 11).</p>
-
-        <p>However, if you cease all violation of this License, then your
-            license from a particular copyright holder is reinstated (a)
-            provisionally, unless and until the copyright holder explicitly and
-            finally terminates your license, and (b) permanently, if the copyright
-            holder fails to notify you of the violation by some reasonable means
-            prior to 60 days after the cessation.</p>
-
-        <p>Moreover, your license from a particular copyright holder is
-            reinstated permanently if the copyright holder notifies you of the
-            violation by some reasonable means, this is the first time you have
-            received notice of violation of this License (for any work) from that
-            copyright holder, and you cure the violation prior to 30 days after
-            your receipt of the notice.</p>
-
-        <p>Termination of your rights under this section does not terminate the
-            licenses of parties who have received copies or rights from you under
-            this License.  If your rights have been terminated and not permanently
-            reinstated, you do not qualify to receive new licenses for the same
-            material under section 10.</p>
-
-        <h4>9. Acceptance Not Required for Having Copies.</h4>
-
-        <p>You are not required to accept this License in order to receive or
-            run a copy of the Program.  Ancillary propagation of a covered work
-            occurring solely as a consequence of using peer-to-peer transmission
-            to receive a copy likewise does not require acceptance.  However,
-            nothing other than this License grants you permission to propagate or
-            modify any covered work.  These actions infringe copyright if you do
-            not accept this License.  Therefore, by modifying or propagating a
-            covered work, you indicate your acceptance of this License to do so.</p>
-
-        <h4>10. Automatic Licensing of Downstream Recipients.</h4>
-
-        <p>Each time you convey a covered work, the recipient automatically
-            receives a license from the original licensors, to run, modify and
-            propagate that work, subject to this License.  You are not responsible
-            for enforcing compliance by third parties with this License.</p>
-
-        <p>An “entity transaction” is a transaction transferring control of an
-            organization, or substantially all assets of one, or subdividing an
-            organization, or merging organizations.  If propagation of a covered
-            work results from an entity transaction, each party to that
-            transaction who receives a copy of the work also receives whatever
-            licenses to the work the party’s predecessor in interest had or could
-            give under the previous paragraph, plus a right to possession of the
-            Corresponding Source of the work from the predecessor in interest, if
-            the predecessor has it or can get it with reasonable efforts.</p>
-
-        <p>You may not impose any further restrictions on the exercise of the
-            rights granted or affirmed under this License.  For example, you may
-            not impose a license fee, royalty, or other charge for exercise of
-            rights granted under this License, and you may not initiate litigation
-            (including a cross-claim or counterclaim in a lawsuit) alleging that
-            any patent claim is infringed by making, using, selling, offering for
-            sale, or importing the Program or any portion of it.</p>
-
-        <h4>11. Patents.</h4>
-
-        <p>A “contributor” is a copyright holder who authorizes use under this
-            License of the Program or a work on which the Program is based.  The
-            work thus licensed is called the contributor’s “contributor version”.</p>
-
-        <p>A contributor’s “essential patent claims” are all patent claims
-            owned or controlled by the contributor, whether already acquired or
-            hereafter acquired, that would be infringed by some manner, permitted
-            by this License, of making, using, or selling its contributor version,
-            but do not include claims that would be infringed only as a
-            consequence of further modification of the contributor version.  For
-            purposes of this definition, “control” includes the right to grant
-            patent sublicenses in a manner consistent with the requirements of
-            this License.</p>
-
-        <p>Each contributor grants you a non-exclusive, worldwide, royalty-free
-            patent license under the contributor’s essential patent claims, to
-            make, use, sell, offer for sale, import and otherwise run, modify and
-            propagate the contents of its contributor version.</p>
-
-        <p>In the following three paragraphs, a “patent license” is any express
-            agreement or commitment, however denominated, not to enforce a patent
-            (such as an express permission to practice a patent or covenant not to
-            sue for patent infringement).  To “grant” such a patent license to a
-            party means to make such an agreement or commitment not to enforce a
-            patent against the party.</p>
-
-        <p>If you convey a covered work, knowingly relying on a patent license,
-            and the Corresponding Source of the work is not available for anyone
-            to copy, free of charge and under the terms of this License, through a
-            publicly available network server or other readily accessible means,
-            then you must either (1) cause the Corresponding Source to be so
-            available, or (2) arrange to deprive yourself of the benefit of the
-            patent license for this particular work, or (3) arrange, in a manner
-            consistent with the requirements of this License, to extend the patent
-            license to downstream recipients.  “Knowingly relying” means you have
-            actual knowledge that, but for the patent license, your conveying the
-            covered work in a country, or your recipient’s use of the covered work
-            in a country, would infringe one or more identifiable patents in that
-            country that you have reason to believe are valid.</p>
-
-        <p>If, pursuant to or in connection with a single transaction or
-            arrangement, you convey, or propagate by procuring conveyance of, a
-            covered work, and grant a patent license to some of the parties
-            receiving the covered work authorizing them to use, propagate, modify
-            or convey a specific copy of the covered work, then the patent license
-            you grant is automatically extended to all recipients of the covered
-            work and works based on it.</p>
-
-        <p>A patent license is “discriminatory” if it does not include within
-            the scope of its coverage, prohibits the exercise of, or is
-            conditioned on the non-exercise of one or more of the rights that are
-            specifically granted under this License.  You may not convey a covered
-            work if you are a party to an arrangement with a third party that is
-            in the business of distributing software, under which you make payment
-            to the third party based on the extent of your activity of conveying
-            the work, and under which the third party grants, to any of the
-            parties who would receive the covered work from you, a discriminatory
-            patent license (a) in connection with copies of the covered work
-            conveyed by you (or copies made from those copies), or (b) primarily
-            for and in connection with specific products or compilations that
-            contain the covered work, unless you entered into that arrangement,
-            or that patent license was granted, prior to 28 March 2007.</p>
-
-        <p>Nothing in this License shall be construed as excluding or limiting
-            any implied license or other defenses to infringement that may
-            otherwise be available to you under applicable patent law.</p>
-
-        <h4>12. No Surrender of Others’ Freedom.</h4>
-
-        <p>If conditions are imposed on you (whether by court order, agreement or
-            otherwise) that contradict the conditions of this License, they do not
-            excuse you from the conditions of this License.  If you cannot convey a
-            covered work so as to satisfy simultaneously your obligations under this
-            License and any other pertinent obligations, then as a consequence you may
-            not convey it at all.  For example, if you agree to terms that obligate you
-            to collect a royalty for further conveying from those to whom you convey
-            the Program, the only way you could satisfy both those terms and this
-            License would be to refrain entirely from conveying the Program.</p>
-
-        <h4>13. Use with the GNU Affero General Public License.</h4>
-
-        <p>Notwithstanding any other provision of this License, you have
-            permission to link or combine any covered work with a work licensed
-            under version 3 of the GNU Affero General Public License into a single
-            combined work, and to convey the resulting work.  The terms of this
-            License will continue to apply to the part which is the covered work,
-            but the special requirements of the GNU Affero General Public License,
-            section 13, concerning interaction through a network will apply to the
-            combination as such.</p>
-
-        <h4>14. Revised Versions of this License.</h4>
-
-        <p>The Free Software Foundation may publish revised and/or new versions of
-            the GNU General Public License from time to time.  Such new versions will
-            be similar in spirit to the present version, but may differ in detail to
-            address new problems or concerns.</p>
-
-        <p>Each version is given a distinguishing version number.  If the
-            Program specifies that a certain numbered version of the GNU General
-            Public License “or any later version” applies to it, you have the
-            option of following the terms and conditions either of that numbered
-            version or of any later version published by the Free Software
-            Foundation.  If the Program does not specify a version number of the
-            GNU General Public License, you may choose any version ever published
-            by the Free Software Foundation.</p>
-
-        <p>If the Program specifies that a proxy can decide which future
-            versions of the GNU General Public License can be used, that proxy’s
-            public statement of acceptance of a version permanently authorizes you
-            to choose that version for the Program.</p>
-
-        <p>Later license versions may give you additional or different
-            permissions.  However, no additional obligations are imposed on any
-            author or copyright holder as a result of your choosing to follow a
-            later version.</p>
-
-        <h4>15. Disclaimer of Warranty.</h4>
-
-        <p>THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-            APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-            HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY
-            OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-            THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-            PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-            IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-            ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>
-
-        <h4>16. Limitation of Liability.</h4>
-
-        <p>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-            WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-            THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-            GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-            USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-            DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-            PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-            EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-            SUCH DAMAGES.</p>
-
-        <h4>17. Interpretation of Sections 15 and 16.</h4>
-
-        <p>If the disclaimer of warranty and limitation of liability provided
-            above cannot be given local legal effect according to their terms,
-            reviewing courts shall apply local law that most closely approximates
-            an absolute waiver of all civil liability in connection with the
-            Program, unless a warranty or assumption of liability accompanies a
-            copy of the Program in return for a fee.</p>
-
-        <p>END OF TERMS AND CONDITIONS</p>
-
-        <h3>How to Apply These Terms to Your New Programs</h3>
-
-        <p>If you develop a new program, and you want it to be of the greatest
-            possible use to the public, the best way to achieve this is to make it
-            free software which everyone can redistribute and change under these terms.</p>
-
-        <p>To do so, attach the following notices to the program.  It is safest
-            to attach them to the start of each source file to most effectively
-            state the exclusion of warranty; and each file should have at least
-            the “copyright” line and a pointer to where the full notice is found.</p>
-
-        <pre>&lt;one line to give the program’s name
-and a brief idea of what it does.&gt;
-Copyright (C) &lt;year&gt;  &lt;name of author&gt;
-
-This program 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.
-
-This program 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
-this program.  If not, see
-&lt;http://www.gnu.org/licenses/&gt;.</pre>
-
-        <p>Also add information on how to contact you by electronic and paper mail.</p>
-
-        <p>If the program does terminal interaction, make it output a short
-            notice like this when it starts in an interactive mode:</p>
-
-        <pre>&lt;program&gt;  Copyright (C) &lt;year&gt;
-&lt;name of author&gt;
-This program comes with ABSOLUTELY NO
-WARRANTY; for details type `show w'.
-This is free software, and you are
-welcome to redistribute it under
-certain conditions; type `show c'
-for details.</pre>
-
-        <p>The hypothetical commands `show w' and `show c' should show the appropriate
-            parts of the General Public License.  Of course, your program’s commands
-            might be different; for a GUI interface, you would use an “about box”.</p>
-
-        <p>You should also get your employer (if you work as a programmer) or school,
-            if any, to sign a “copyright disclaimer” for the program, if necessary.
-            For more information on this, and how to apply and follow the GNU GPL, see
-            <<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>>.</p>
-
-        <p>The GNU General Public License does not permit incorporating your program
-            into proprietary programs.  If your program is a subroutine library, you
-            may consider it more useful to permit linking proprietary applications with
-            the library.  If this is what you want to do, use the GNU Lesser General
-            Public License instead of this License.  But first, please read
-            <<a href="http://www.gnu.org/philosophy/why-not-lgpl.html">http://www.gnu.org/philosophy/why-not-lgpl.html</a>>.</p>
-
-        <hr/>
-
-        <h3>Apache License</h3>
-        <p>Version 2.0, January 2004</p>
-        <p><a href="http://www.apache.org/licenses/">http://www.apache.org/licenses/</a></p>
-
-        <h3>TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION</h3>
-
-        <h4>1. Definitions.</h4>
-
-        <p>“License” shall mean the terms and conditions for use, reproduction, and
-            distribution as defined by Sections 1 through 9 of this document.</p>
-
-        <p>“Licensor” shall mean the copyright owner or entity authorized by the
-            copyright owner that is granting the License.</p>
-
-        <p>“Legal Entity” shall mean the union of the acting entity and all other
-            entities that control, are controlled by, or are under common control with
-            that entity. For the purposes of this definition, “control” means (i) the
-            power, direct or indirect, to cause the direction or management of such
-            entity, whether by contract or otherwise, or (ii) ownership of fifty
-            percent (50%) or more of the outstanding shares, or (iii) beneficial
-            ownership of such entity.</p>
-
-        <p>“You” (or “Your”) shall mean an individual or Legal Entity exercising
-            permissions granted by this License.</p>
-
-        <p>“Source” form shall mean the preferred form for making modifications,
-            including but not limited to software source code, documentation source,
-            and configuration files.</p>
-
-        <p>“Object” form shall mean any form resulting from mechanical transformation
-            or translation of a Source form, including but not limited to compiled
-            object code, generated documentation, and conversions to other media types.</p>
-
-        <p>“Work” shall mean the work of authorship, whether in Source or Object form,
-            made available under the License, as indicated by a copyright notice that
-            is included in or attached to the work (an example is provided in the
-            Appendix below).</p>
-
-        <p>“Derivative Works” shall mean any work, whether in Source or Object form,
-            that is based on (or derived from) the Work and for which the editorial
-            revisions, annotations, elaborations, or other modifications represent, as
-            a whole, an original work of authorship. For the purposes of this License,
-            Derivative Works shall not include works that remain separable from, or
-            merely link (or bind by name) to the interfaces of, the Work and Derivative
-            Works thereof.</p>
-
-        <p>“Contribution” shall mean any work of authorship, including the original
-            version of the Work and any modifications or additions to that Work or
-            Derivative Works thereof, that is intentionally submitted to Licensor for
-            inclusion in the Work by the copyright owner or by an individual or Legal
-            Entity authorized to submit on behalf of the copyright owner. For the
-            purposes of this definition, “submitted” means any form of electronic,
-            verbal, or written communication sent to the Licensor or its
-            representatives, including but not limited to communication on electronic
-            mailing lists, source code control systems, and issue tracking systems that
-            are managed by, or on behalf of, the Licensor for the purpose of discussing
-            and improving the Work, but excluding communication that is conspicuously
-            marked or otherwise designated in writing by the copyright owner as “Not a
-            Contribution.”</p>
-
-        <p>“Contributor” shall mean Licensor and any individual or Legal Entity on
-            behalf of whom a Contribution has been received by Licensor and
-            subsequently incorporated within the Work.</p>
-
-        <h4>2. Grant of Copyright License.</h4>
-
-        <p>Subject to the terms and conditions of this License, each Contributor hereby
-            grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
-            irrevocable copyright license to reproduce, prepare Derivative Works of, publicly
-            display, publicly perform, sublicense, and distribute the Work and such
-            Derivative Works in Source or Object form.</p>
-
-        <h4>3. Grant of Patent License.</h4>
-
-        <p>Subject to the terms and conditions of this License, each Contributor hereby grants
-            to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-            (except as stated in this section) patent license to make, have made, use,
-            offer to sell, sell, import, and otherwise transfer the Work, where such
-            license applies only to those patent claims licensable by such Contributor
-            that are necessarily infringed by their Contribution(s) alone or by
-            combination of their Contribution(s) with the Work to which such
-            Contribution(s) was submitted. If You institute patent litigation against
-            any entity (including a cross-claim or counterclaim in a lawsuit) alleging
-            that the Work or a Contribution incorporated within the Work constitutes
-            direct or contributory patent infringement, then any patent licenses
-            granted to You under this License for that Work shall terminate as of the
-            date such litigation is filed.</p>
-
-        <h4>4. Redistribution.</h4>
-
-        <p>You may reproduce and distribute copies of the Work or Derivative Works thereof
-            in any medium, with or without modifications, and in Source or Object form, provided
-            that You meet the following conditions:</p>
-
-        <ol>
-            <li>You must give any other recipients of the Work or Derivative Works a
-                copy of this License; and</li>
-
-            <li>You must cause any modified files to carry prominent notices stating
-                that You changed the files; and</li>
-
-            <li>You must retain, in the Source form of any Derivative Works that You
-                distribute, all copyright, patent, trademark, and attribution notices from
-                the Source form of the Work, excluding those notices that do not pertain to
-                any part of the Derivative Works; and</li>
-
-            <li>If the Work includes a “NOTICE” text file as part of its distribution,
-                then any Derivative Works that You distribute must include a readable copy
-                of the attribution notices contained within such NOTICE file, excluding
-                those notices that do not pertain to any part of the Derivative Works, in
-                at least one of the following places: within a NOTICE text file distributed
-                as part of the Derivative Works; within the Source form or documentation,
-                if provided along with the Derivative Works; or, within a display generated
-                by the Derivative Works, if and wherever such third-party notices normally
-                appear. The contents of the NOTICE file are for informational purposes only
-                and do not modify the License. You may add Your own attribution notices
-                within Derivative Works that You distribute, alongside or as an addendum to
-                the NOTICE text from the Work, provided that such additional attribution
-                notices cannot be construed as modifying the License.
-                <br/>
-                <br/>
-                You may add Your own copyright statement to Your modifications and may
-                provide additional or different license terms and conditions for use,
-                reproduction, or distribution of Your modifications, or for any such
-                Derivative Works as a whole, provided Your use, reproduction, and
-                distribution of the Work otherwise complies with the conditions stated in
-                this License.</li>
-        </ol>
-
-        <h4>5. Submission of Contributions.</h4>
-
-        <p>Unless You explicitly state otherwise, any Contribution intentionally submitted for
-            inclusion in the Work by You to the Licensor shall be under the terms and
-            conditions of this License, without any additional terms or conditions.
-            Notwithstanding the above, nothing herein shall supersede or modify the
-            terms of any separate license agreement you may have executed with Licensor
-            regarding such Contributions.</p>
-
-        <h4>6. Trademarks.</h4>
-
-        <p>This License does not grant permission to use the trade names, trademarks, service marks,
-            or product names of the Licensor, except as required for reasonable and customary use
-            in describing the origin of the Work and reproducing the content of the
-            NOTICE file.</p>
-
-        <h4>7. Disclaimer of Warranty.</h4>
-
-        <p>Unless required by applicable law or agreed to in writing, Licensor provides the Work
-            (and each Contributor provides its Contributions) on an “AS IS” BASIS, WITHOUT
-            WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including,
-            without limitation, any warranties or conditions of TITLE,
-            NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You
-            are solely responsible for determining the appropriateness of using or
-            redistributing the Work and assume any risks associated with Your exercise
-            of permissions under this License.</p>
-
-        <h4>8. Limitation of Liability.</h4>
-
-        <p>In no event and under no legal theory, whether in tort (including negligence), contract,
-            or otherwise, unless required by applicable law (such as deliberate and
-            grossly negligent acts) or agreed to in writing, shall any Contributor be
-            liable to You for damages, including any direct, indirect, special,
-            incidental, or consequential damages of any character arising as a result
-            of this License or out of the use or inability to use the Work (including
-            but not limited to damages for loss of goodwill, work stoppage, computer
-            failure or malfunction, or any and all other commercial damages or losses),
-            even if such Contributor has been advised of the possibility of such
-            damages.</p>
-
-        <h4>9. Accepting Warranty or Additional Liability.</h4>
-
-        <p>While redistributing the Work or Derivative Works thereof, You may choose
-            to offer, and charge a fee for, acceptance of support, warranty, indemnity,
-            or other liability obligations and/or rights consistent with this License.
-            However, in accepting such obligations, You may act only on Your own behalf
-            and on Your sole responsibility, not on behalf of any other Contributor,
-            and only if You agree to indemnify, defend, and hold each Contributor
-            harmless for any liability incurred by, or claims asserted against, such
-            Contributor by reason of your accepting any such warranty or additional
-            liability.</p>
-
-        <p>END OF TERMS AND CONDITIONS</p>
-
-        <h3>APPENDIX: How to apply the Apache License to your work</h3>
-
-        <p>To apply the Apache License to your work, attach the following boilerplate
-            notice, with the fields enclosed by brackets “[]” replaced with your own
-            identifying information. (Don’t include the brackets!) The text should be
-            enclosed in the appropriate comment syntax for the file format. We also
-            recommend that a file or class name and description of purpose be included
-            on the same “printed page” as the copyright notice for easier
-            identification within third-party archives.</p>
-        <pre>Copyright [yyyy] [name of copyright owner]
-
-Licensed under the Apache License,
-Version 2.0 (the “License”);
-you may not use this file except
-in compliance with the License.
-You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law
-or agreed to in writing, software
-distributed under the License is
-distributed on an “AS IS” BASIS,
-WITHOUT WARRANTIES OR CONDITIONS
-OF ANY KIND, either express or implied.
-See the License for the specific
-language governing permissions and
-limitations under the License.</pre>
-
-        <hr/>
-
-        <h3>3-Clause BSD License</h3>
-
-        <p>Redistribution and use in source and binary forms, with or without
-            modification, are permitted provided that the following conditions are
-            met:</p>
-
-        <ul>
-            <li>Redistributions of source code must retain the above copyright
-                notice, this list of conditions and the following disclaimer.</li>
-
-            <li>Redistributions in binary form must reproduce the above
-                copyright notice, this list of conditions and the following disclaimer
-                in the documentation and/or other materials provided with the
-                distribution.</li>
-
-            <li>Neither the names of the copyright owners nor the names of its
-                contributors may be used to endorse or promote products derived from
-                this software without specific prior written permission.</li>
-        </ul>
-
-        <p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-            “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-            LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-            A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-            OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-            SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-            LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-            DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-            THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-            (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-            OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/main/assets/zh-rTW/about_links.html b/app/src/main/assets/zh-rTW/about_links.html
deleted file mode 100644 (file)
index f928451..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-
-            img.icon {
-                vertical-align: middle;
-                height: 32;
-                width: 32;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3>Websites</h3>
-
-        <p><a href="https://www.stoutner.com/category/privacy-browser/"><img class="icon" src="../en/images/ic_chrome_reader_mode_dark_blue.png"></a> <a href="https://www.stoutner.com/category/privacy-browser/">News</a></p>
-
-        <p><a href="https://www.stoutner.com/category/roadmap/"><img class="icon" src="../en/images/ic_map_dark_blue.png"></a> <a href="https://www.stoutner.com/category/roadmap/">Roadmap</a></p>
-
-        <p><a href="https://redmine.stoutner.com/projects/privacy-browser/issues"><img class="icon" src="../en/images/ic_bug_report_dark_blue.png"></a> <a href="https://redmine.stoutner.com/projects/privacy-browser/issues">Bug Tracker and Feature Requests</a></p>
-
-        <p><a href="https://redmine.stoutner.com/projects/privacy-browser/boards"><img class="icon" src="../en/images/ic_question_answer_dark_blue.png"></a> <a href="https://redmine.stoutner.com/projects/privacy-browser/boards">Forum</a></p>
-
-        <p><a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=summary"><img class="icon" src="../en/images/ic_more_dark_blue.png"></a> <a href="https://git.stoutner.com/?p=PrivacyBrowser.git;a=summary">GitWeb</a></p>
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/main/assets/zh-rTW/about_permissions.html b/app/src/main/assets/zh-rTW/about_permissions.html
deleted file mode 100644 (file)
index 4fda4ba..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3>Have full network access</h3>
-
-        <p><a href="https://developer.android.com/reference/android/Manifest.permission.html#INTERNET">android.permission.INTERNET</a></p>
-
-        <p>Required for the WebView to access the internet. Without this permission, Privacy Browser would be “No Browser: Protecting Your Privacy by Staying Completely Off the Internet”.</p>
-
-
-        <h3>Install shortcuts</h3>
-
-        <p><a href="https://developer.android.com/reference/android/Manifest.permission.html#INSTALL_SHORTCUT">com.android.launcher.permission.INSTALL_SHORTCUT</a></p>
-
-        <p>Required to add shortcuts for websites to the launcher desktop.</p>
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/main/assets/zh-rTW/about_privacy_policy.html b/app/src/main/assets/zh-rTW/about_privacy_policy.html
deleted file mode 100644 (file)
index 5fdcce1..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-
-            strong.red {
-                color: B71C1C;
-            }
-
-            strong.blue {
-                color: 1565C0;
-            }
-
-            item {
-                color: 1976D2;
-                font-weight: bold;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3>Privacy Browser</h3>
-        <p><strong class="red">Privacy Browser does not collect any user information</strong>.</p>
-
-
-        <h3>Google Play</h3>
-        <p>Google Play has its <a href="https://www.google.com/intl/en/policies/privacy/">own privacy policy</a>.
-            Google provides <em>anonymized summary installation information</em> to developers, including the number of installs organized by the following categories.</p>
-        <ul>
-            <li><item>Android version</item> (eg. Android 7.1)</li>
-            <li><item>Device</item> (eg. Samsung Galaxy S6 [zeroflte])</li>
-            <li><item>Tablets</item> (eg. Tablets 10" and above)</li>
-            <li><item>Country</item> (eg. United States)</li>
-            <li><item>Language</item> (eg. English [United States])</li>
-            <li><item>App version</item> (eg. 14)</li>
-            <li><item>Carrier</item> (eg. T-Mobile - US)</li>
-        </ul>
-
-
-        <h3>Google Play Ratings</h3>
-        <p>Google Play has its <a href="https://www.google.com/intl/en/policies/privacy/">own privacy policy</a>.
-            Google provides developers with <em>anonymized summaries</em> of the following information related to user ratings.</p>
-        <ul>
-            <li><item>Country</item> (eg. United States)</li>
-            <li><item>Language</item> (eg. English)</li>
-            <li><item>App version</item> (eg. 14)</li>
-            <li><item>Android version</item> (eg. Android 7.1)</li>
-            <li><item>Device</item> (eg. Google Nexus 5X [bullhead])</li>
-            <li><item>Tablets</item> (eg. Tablets 10" and above)</li>
-        </ul>
-
-
-        <h3>Google Play Reviews</h3>
-        <p>Google Play has its <a href="https://www.google.com/intl/en/policies/privacy/">own privacy policy</a>.
-            In addition to the name of the reviewer, the rating, and the text of the review (which are all available publicly), Google provides some or all of the following information to the developer.</p>
-        <ul>
-            <li><item>Version code</item> (eg. 7)</li>
-            <li><item>Version name</item> (eg. 1.6)</li>
-            <li><item>Android version</item> (eg. Android 5.1)</li>
-            <li><item>Device</item> (eg. Galaxy S6 Edge+ [zenlte])</li>
-            <li><item>Manufacturer</item> (eg. Samsung)</li>
-            <li><item>Device type</item> (eg. Phone)</li>
-            <li><item>CPU make</item> (eg. Samsung)</li>
-            <li><item>CPU model</item> (eg. Exynos 7420)</li>
-            <li><item>Screen density</item> (eg. 560 dpi)</li>
-            <li><item>Screen size</item> (eg. 2560 x 1440)</li>
-            <li><item>RAM</item> (eg. 4096 MB)</li>
-            <li><item>Native platform</item> (eg. armeabi-v7a,armeabi,arm64v8a)</li>
-            <li><item>OpenGL ES version</item> (eg. 3.1)</li>
-            <li><item>Device language</item> (eg. English)</li>
-        </ul>
-
-
-        <h3>Direct Communications</h3>
-        <p>Users may choose to send direct communications to Stoutner, like email messages and comments on <a href="https://www.stoutner.com/">stoutner.com</a>.</p>
-
-
-        <h3>Use of Information</h3>
-        <p><strong class="red">Stoutner may use this information in any way that assists in the development of Privacy Browser, like troubleshooting bug reports or developing features, including sharing the information with a third party to assist in this process</strong>.
-            <strong class="blue">Stoutner will never sell this information nor transfer it to any third party that would use it for advertising or marketing</strong>.</p>
-
-        <hr />
-        <p style="text-align: center;"><em>Revision 1.4, 20 April 2017</em></p>
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/main/assets/zh-rTW/guide_domain_settings.html b/app/src/main/assets/zh-rTW/guide_domain_settings.html
deleted file mode 100644 (file)
index 5c69fba..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-<!--
-  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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-
-            img.title {
-                vertical-align: bottom;
-                height: 32;
-                width: 32;
-            }
-
-            img.center {
-                display: block;
-                margin-left: auto;
-                margin-right: auto;
-                height: 640;
-                width: 360;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3><img class="title" src="../en/images/ic_dns_dark_blue.png"> Secure Web Browsing</h3>
-
-        <p>Privacy Browser’s default is to browse with JavaScript, cookies, and DOM storage disabled.
-            However, some websites legitimately need these features enabled to function correctly.
-            Domain settings can automatically turn on a specified set of features when visiting a designated domain.</p>
-
-        <p><img class="center" src="../en/images/domain_settings.png"></p>
-
-        <p>When visiting a domain that has domain settings specified, the background of the URL text box is green.</p>
-
-        <p><img class="center" src="../en/images/green_url_bar.png"></p>
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/main/assets/zh-rTW/guide_javascript.html b/app/src/main/assets/zh-rTW/guide_javascript.html
deleted file mode 100644 (file)
index ab13241..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-
-        <!-- We have to make an image into its own block to center it. -->
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-
-            img.title {
-                vertical-align: bottom;
-                height: 32;
-                width: 32;
-            }
-
-            img.center {
-                display: block;
-                margin-left: auto;
-                margin-right: auto;
-                height: 640;
-                width: 360;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3><img class="title" src="../en/images/privacy_browser.png"> JavaScript Is Powerful</h3>
-
-        <p>Back in the early days of the internet, web pages were static, meaning they they contained text and images that were displayed on the screen
-            but didn’t change or interact with the user. Of course, only so much that is interesting can happen with static content.
-            Several different technologies were developed to facilitate dynamic web pages. JavaScript is one of these technologies.</p>
-
-        <p>JavaScript is a programming language. Many web servers host programs written in JavaScript, which are sent to devices as part of the web page.
-            The device runs the JavaScript on its local processor and follows the commands of the program, which can animate images on the website,
-            popup a menu, and do many other useful things.</p>
-
-
-        <h3><img class="title" src="../en/images/javascript_enabled.png"> JavaScript Is Dangerous</h3>
-
-        <p>Of course, the concept of running arbitrary programs from a website is potentially dangerous. So there are limitations placed on JavaScript
-            to keep it from doing things like installing viruses. However, it turns out that these limitations are overly broad.
-            Below is a screenshot from <a href="http://webkay.robinlinus.com">webkay</a>, which is a website that demonstrates the type of information that
-            JavaScript can produce about a device. <a href="http://www.browserleaks.com/">Browser Leaks</a> is another good resource.</p>
-
-        <p><img class="center" src="../en/images/webkay.png"></p>
-
-        <p>For privacy purposes, the ideal would be to browse the internet with JavaScript disabled. However, there are some websites that legitimately require
-            JavaScript to accomplish their purposes and others that don’t work correctly without JavaScript even though they could be programmed to do so.
-            Privacy Browser addresses this by making it easy to toggle JavaScript on and off. Tapping the privacy shield will toggle it between blue
-            <img src="../en/images/privacy_browser.png" height="16" width="16"> or yellow <img src="../en/images/warning.png" height="16" width="16"> (both of which indicate
-            that JavaScript is disabled) and red <img src="../en/images/javascript_enabled.png" height="16" width="16"> (JavaScript enabled).
-            Looking at the different information <a href="http://webkay.robinlinus.com">webkay</a> can collect with JavaScript enabled and disabled is informative.</p>
-
-        <p>Browsing the internet with JavaScript disabled, and only enabling it if needed, goes a long way to protecting user privacy. In addition, JavaScript
-            is used to load much of the annoying advertisements and extra cruft that comes along with most modern websites. With it disabled, websites will
-            load faster, consume less network traffic, and contain less annoying advertisements, instead of those that do things like cover up the text of the
-            entire web page.</p>
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/main/assets/zh-rTW/guide_local_storage.html b/app/src/main/assets/zh-rTW/guide_local_storage.html
deleted file mode 100644 (file)
index 49254ab..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-
-            img.title {
-                vertical-align: bottom;
-                height: 32;
-                width: 32;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3><img class="title" src="../en/images/cookie_dark_blue.png"> First-Party Cookies</h3>
-
-        <p>First-party cookies are set by the website in the URL bar at the top of the page.</p>
-
-        <p>From the early days of the internet, it became obvious that it would be advantageous for websites to be able to store
-            information on a computer for future access. For example, a website that displays weather information could ask the
-            user for a zip code, and then store it in a cookie. The next time the user visited the website, weather information
-            would automatically load for that zip code, without the user having to enter the zip code, and without the need for
-            the user to create an account on the website (which would be overkill for such a simple task).</p>
-
-        <p>Like everything else on the web, clever people figured out all types of ways to abuse cookies to do things that users
-            would not approve of if they knew they were happening. For example, a website can set a cookie with a unique serial
-            number on a device. Then, every time a user visits the website on that device, it can be linked to a unique profile
-            the server maintains for that serial number, even if the device connects from different IP addresses, as cell phones often do.</p>
-
-        <p>Many websites with logins require first-party cookies to be enabled for a user to stay logged in. Cookies aren’t the only way
-            a website can maintain a user logged in as they move from page to page on the site, but if a particular website has chosen to
-            implement logins in that way, enabling first-party cookies on that site will be the only way to use the functionality.</p>
-
-        <p>If first-party cookies are enabled but JavaScript is disabled, the privacy icon will be yellow <img src="images/warning.png" height="16" width="16">
-            as a warning.</p>
-
-
-        <h3><img class="title" src="../en/images/cookie_dark_blue.png"> Third-Party Cookies</h3>
-
-        <p>Third-party cookies are set by portions of a website that are loaded from servers different from the URL at the top of the page.
-            For example, most website that have advertisements load them from a third-party ad broker, like Google’s
-            <a href="https://www.google.com/adsense/start/#?modal_active=none">Ad Sense</a>. Every time the website loads, it requests the ad
-            broker to display an ad. The ad broker analyzes any information they may have about the user, looks at the current
-            rate advertisers are willing to pay for their ads, and selects the one to display. The section of the website that displays
-            the ads is loaded from the third-party broker’s server instead of the main server.</p>
-
-        <p>Because most of the advertisements on the internet are processed by only a few brokers, it didn’t take long for them to realize
-            that they could set a tracking cookie on the user’s device and know every place that user goes. Every time an ad loads from a broker,
-            the first thing it does it check to see if if the device already has a unique serial number in a tracking cookie. If it does, it looks up
-            the profile for that serial number and makes a note of the new site. This is why a user can do a search on one website for a
-            product they typically don’t look for, like walnuts, and then suddenly start seeing advertisements for walnuts on every
-            website they visit.</p>
-
-        <p>In addition to ad brokers, social media sites discovered they could get in on the action. A few years ago, the major social media sites
-            like Facebook and Twitter convinced a large number of websites that it would be in there best interest to place little social media
-            icons on their pages. These are not just images. They contain <a href="https://developers.facebook.com/docs/plugins/like-button/">embedded code</a> that
-            links back to the social media site, and, among other things, loads a third-party cookie on the device. These cookies are placed even if the user does
-            not have an account with the social media platform. Over time, companies like Facebook (which also runs an ad network) have built up quite a large number
-            of detailed profiles about people who have <a href="http://www.theverge.com/2016/5/27/11795248/facebook-ad-network-non-users-cookies-plug-ins">never even
-            created an account on their site</a>.</p>
-
-        <p>There is almost no good reason to ever enable third-party cookies. On devices with Android KitKat or older (version <= 4.4.4 or API <= 20), WebView
-            does not <a href="https://developer.android.com/reference/android/webkit/CookieManager.html#setAcceptThirdPartyCookies(android.webkit.WebView, boolean)">differentiate
-            between first-party and third-party cookies</a>. Thus, enabling first-party cookies will also enable third-party cookies.</p>
-
-
-        <h3><img class="title" src="../en/images/ic_web_dark_blue.png"> DOM Storage</h3>
-
-        <p>Document Object Model storage, also known as web storage, is like cookies on steroids. Whereas the maximum combined storage size for all cookies from
-            a single URL is 4 kilobytes, DOM storage can hold <a href="https://en.wikipedia.org/wiki/Web_storage#Storage_size">megabytes per site</a>.
-            Because DOM storage uses JavaScript to read and write data, enabling it will do nothing unless JavaScript is also enabled.</p>
-
-
-        <h3><img class="title" src="../en/images/ic_subtitles_dark_blue.png"> Form Data</h3>
-
-        <p>Form data contains information typed into web forms, like user names, addresses, phone numbers, etc., and lists them in a drop-down box on future visits.
-            Unlike the other forms of local storage, form data is not sent to the web server without specific user interaction.</p>
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/main/assets/zh-rTW/guide_overview.html b/app/src/main/assets/zh-rTW/guide_overview.html
deleted file mode 100644 (file)
index e2d3786..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3>True Privacy</h3>
-
-        <p>Privacy Browser is designed to let you take as much control of your privacy as possible while still browsing the internet.
-            When a browser connects to a website, certain pieces of information which are necessary to facilitate the connection are transferred to the server.
-            For example, the server will receive your IP address and a port number, which are necessary for it to know where to send the response.
-            This information is often logged by the server, allowing the website developer to produce reports showing how often a webpage was loaded and how many different IP addresses accessed it.</p>
-
-        <p>However, most website operators want more information about their visitors, including tracking their web browsing across multiple websites.
-            There use many different techniques, including requesting or placing extra information on a user’s device, that facilitate this tracking.
-            Almost all browsers will voluntarily participate in this tracking without informing the user they are doing so.
-            Privacy Browser is designed to grant the user as much information and control over these tracking techniques as possible.</p>
-
-
-        <h3>Android’s WebView Limitations</h3>
-
-        <p>Privacy Browser uses Android’s built-in WebView to render websites. There are some limitations in the controls WebView exposes for managing privacy settings.
-            For example, it isn’t possible to enable some JavaScript commands while disabling others. In the future, Privacy Browser will switch to a custom WebView called <a href="https://www.stoutner.com/february-2017-roadmap/">Privacy WebView</a>.</p>
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/main/assets/zh-rTW/guide_tor.html b/app/src/main/assets/zh-rTW/guide_tor.html
deleted file mode 100644 (file)
index 27cacb6..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-
-        <!-- We have to make an image into its own block to center it. -->
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-
-            img.title {
-                vertical-align: bottom;
-                height: 32;
-                width: 32;
-            }
-
-            img.center {
-                display: block;
-                margin-left: auto;
-                margin-right: auto;
-                height: 640;
-                width: 360;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3><img class="title" src="../en/images/orbot_dark_blue.png"> Tor and Its Limits</h3>
-
-        <p>There are two general categories of bad actors that want to infringe on the privacy of the web: malicious governments with access to ISPs (Internet Service Providers) and mega corporations that run social and advertising networks.
-            TOR (The Onion Router) is useful in protecting privacy from malicious governments (which spy on traffic in transit) but not from mega corporations (which embed malicious code on web servers).</p>
-
-
-        <h3>Malicious Governments</h3>
-
-        <p>Malicious governments often spy on their citizens to punish dissent or human rights activity. They commonly either
-            operate the local ISPs or they can force them to disclose information showing every IP address that is visited
-            by each user.  Tor is designed to defeat this infringement of privacy by encrypting the traffic
-            from a user’s device and routing it through three separate servers on the internet before sending it on to the final destination.
-            This means that no individual ISP, server, or website, can know both the <a href="https://ipleak.net">IP address the user’s device</a>
-            and the IP address of the final web server. Malicious governments and the ISPs they control cannot tell which
-            web servers a user is accessing, although they can tell that the user is using Tor. In some parts of
-            the world, using Tor could be construed as an evidence of illegal behavior (“if you didn’t have anything
-            to hide you wouldn’t be encrypting your traffic”) and users could be punished because governments
-            assume they are doing something that is prohibited. Thus, Tor can be helpful, but isn’t a panacea.</p>
-
-
-        <h3>Mega Corporations</h3>
-
-        <p>When a user connects to a web server, the web server can see the user’s IP address. Although it isn’t a perfect science,
-            IP addresses can be turned into physical addresses with a <a href="https://www.whatismyip.com/">fair amount of accuracy</a>.
-            Small web servers typically rely on IP addresses to identify the location of the users visiting their site.
-            Tor is a good solution to mask the user’s location from these servers. But large mega corporations
-            that own social media and advertising networks use a whole profile of information that is designed to track users
-            across devices and IP addresses. These profiles employ a variety of techniques to identify users, including JavaScript,
-            cookies, tracking IDs, and <a href="https://panopticlick.eff.org/">browser fingerprinting</a>. Because the vast majority
-            of the websites on the internet either load an ad from one of the major networks or embed social media icons with their
-            associated JavaScript, these corporations have built profiles for almost every user online and can track their internet
-            activity across unrelated sites.</p>
-
-        <p>They track every site that is visited, everything that is purchased, every credit card that is used to
-            make a purchase, every address that items are shipped to, and the GPS metadata of every picture that is
-            uploaded to the internet. They build a profile of a user’s age, gender, marital status, address, political affiliations,
-            religious affiliations, family circumstances, number of pets, and everything else they can get their hands on.
-            They even buy up databases of credit card transactions at local stores, so they can track the off-line purchasing patterns of the users
-            in their profiles. Because they already have much more accurate address information about a user than an IP address discloses,
-            Tor provides no real privacy protection against mega corporations.</p>
-
-        <p>The single best privacy protection against mega corporations is to browse the web with JavaScript disabled, followed
-            by blocking ad networks, disabling cookies and DOM storage, and using a browser that is difficult to fingerprint.</p>
-
-
-        <h3>Using Tor</h3>
-
-        <p>Despite its limitations, Tor can be useful in some circumstances. The Tor project has an app for Android called Orbot,
-            which is available on <a href="https://f-droid.org/repository/browse/?fdfilter=orbot&fdid=org.torproject.android">F-Droid</a>
-            and everywhere else that Privacy Browser is distributed. Privacy Browser has a setting to use Orbot as
-            a proxy. When this is turned on, Privacy Browser’s app bar will have a light blue background instead of
-            the default light grey. When Privacy Browser’s Orbot proxy setting is enabled, internet access
-            will not work unless Orbot is running and connected to Tor. Because traffic is being routed through several Tor nodes,
-            using Tor is often much slower than connecting directly to the internet.</p>
-
-        <img class="center" src="../en/images/tor.png">
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/main/assets/zh-rTW/guide_tracking_ids.html b/app/src/main/assets/zh-rTW/guide_tracking_ids.html
deleted file mode 100644 (file)
index 25358a9..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-
-        <!-- We have to make an image into its own block to center it. -->
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-
-            img.center {
-                display: block;
-                margin-left: auto;
-                margin-right: auto;
-                height: 640;
-                width: 360;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3>Do Not Track</h3>
-
-        <p>A few years ago the W3C (World Wide Web Consortium) created a mechanism for browsers to inform web servers that they would not like to be tracked.
-            This is accomplished by including a <a href="https://en.wikipedia.org/wiki/Do_Not_Track">DNT (Do Not Track) header</a> with web requests.</p>
-
-        <p>The DNT header doesn't really provide much privacy because most web servers ignore it. For example, Yahoo, Google, Microsoft, and Facebook all ignore at least some DNT headers.</p>
-
-
-        <h3>Advertisements</h3>
-
-        <p>Privacy Browser Free includes a banner advertisement across the bottom of the screen that is populated by Google’s AdMob network.
-            By default, Google provides the <a href="https://support.google.com/googleplay/android-developer/answer/6048248?hl=en">advertising ID</a> of the device to the ads displayed through this network.
-            This allows advertising companies to build a profile of the device that show which apps are installed (that display ads), how often they are used, and which ads the user is interested in.</p>
-
-        <p>Users can choose to disable the advertising ID in <strong>Settings</strong>, <strong>Google</strong>, <strong>Ads</strong>.</p>
-
-        <img class="center" src="../en/images/advertising_id.png">
-
-        <p>The purpose of the free version of Privacy Browser is to allow people to test the features of the app. The standard version can be purchased on the major app stores or downloaded for free from
-            <a href="https://f-droid.org/repository/browse/?fdfilter=privacy+browser&fdid=com.stoutner.privacybrowser.standard">F-Droid</a>.</p>
-
-
-        <h3>Verizon Tracking Headers</h3>
-
-        <p>Verizon, one of the major mobile carriers in the United States, adds a unique tracking header to all unencrypted HTTP traffic on their network. The Electronic Frontier Foundation has written about the
-            <a href="https://www.eff.org/deeplinks/2014/11/verizon-x-uidh">privacy implications of this practice</a>. Due to public pressure Verizon has created a way to
-            <a href="http://www.clark.com/how-opt-out-verizons-super-cookie-tracking">opt out of this tracking</a>.</p>
-    </body>
-</html>
\ No newline at end of file
diff --git a/app/src/main/assets/zh-rTW/guide_user_agent.html b/app/src/main/assets/zh-rTW/guide_user_agent.html
deleted file mode 100644 (file)
index d1be2ba..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!--
-  Copyright © 2016-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/>. -->
-
-<html>
-    <head>
-        <meta charset="UTF-8">
-
-        <!-- We have to make an image into its own block to center it. -->
-        <style>
-            h3 {
-                color: 0D4781;
-            }
-
-            img.title {
-                vertical-align: bottom;
-                height: 32;
-                width: 32;
-            }
-
-            img.center {
-                display: block;
-                margin-left: auto;
-                margin-right: auto;
-                height: 640;
-                width: 360;
-            }
-        </style>
-    </head>
-
-    <body>
-        <h3><img class="title" src="../en/images/ic_devices_other_dark_blue.png"> Browser Identification</h3>
-
-        <p>When web browsers connect to websites, they send a user agent, which identifies the browser and the rendering capabilities it possesses. The web server can use this information to decide which version of the
-            website to send to the browser. For example, many websites have different versions for desktop and mobile browsers.</p>
-
-        <p>By default, Privacy Browser uses its own user agent, which is PrivacyBrowser/1.0. This sends a minimum of information to the web server. Because web servers do not recognize this to be a mobile user agent,
-            they typically display the desktop version of the site.</p>
-
-        <p>By comparison, WebView’s default user agent divulges a large amount of information about the hardware and software of the device. On the <strong>Settings</strong> screen, selecting <strong>WebView Default</strong> as the
-            <strong>User agent</strong> displays the user agent that will be sent. The screenshot below shows a Nexus 6P running Android 7.1.1 with Android System WebView 55.0.2883.91 installed.  Most web servers will recognize this as
-            a mobile browser and will display the mobile version of the site if they have one.</p>
-
-        <img class="center" src="../en/images/user_agent.png">
-
-        <p>There is enough information in the user agent that sometimes only a few visitors to a website will be the same. If the user agent is combined with another piece of non-unique identifying information, often it results in a unique fingerprint.
-            The Electronic Frontier Foundation created a tool called <a href="https://panopticlick.eff.org/">Panopticlick</a> to demonstrate how much information can be gleaned from these sources. If this test is run with JavaScript enabled the
-            amount of information that is disclosed increases greatly. <a href="https://www.browserleaks.com">Browser Leaks</a> and <a href="https://amiunique.org/">Am I Unique</a> are also good sources of information.</p>
-
-        <img class="center" src="../en/images/panopticlick.png">
-
-        <p>There are several preset user agents that match common browsers and operating systems. For browser fingerprinting purposes, anything that is rare is easier to track. If Privacy Browser becomes common and many people use PrivacyBrowser/1.0
-            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>
-    </body>
-</html>
\ No newline at end of file
index 4200fb5e1efc74c0b5f76566cd06ab8f7c0b8681..d708132d390a075610393ac3bc5c5b7d23d73ad6 100644 (file)
@@ -122,9 +122,6 @@ import java.util.Set;
 public class MainWebViewActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener, CreateHomeScreenShortcutDialog.CreateHomeScreenSchortcutListener,
         SslCertificateErrorDialog.SslCertificateErrorListener, DownloadFileDialog.DownloadFileListener, DownloadImageDialog.DownloadImageListener, UrlHistoryDialog.UrlHistoryListener {
 
 public class MainWebViewActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener, CreateHomeScreenShortcutDialog.CreateHomeScreenSchortcutListener,
         SslCertificateErrorDialog.SslCertificateErrorListener, DownloadFileDialog.DownloadFileListener, DownloadImageDialog.DownloadImageListener, UrlHistoryDialog.UrlHistoryListener {
 
-    // `appBar` is public static so it can be accessed from `OrbotProxyHelper`.  It is also used in `onCreate()`, `onOptionsItemSelected()`, `closeFindOnPage()`, and `applyAppSettings()`.
-    public static ActionBar appBar;
-
     // `favoriteIconBitmap` is public static so it can be accessed from `CreateHomeScreenShortcutDialog`, `BookmarksActivity`, `CreateBookmarkDialog`, `CreateBookmarkFolderDialog`, `EditBookmarkDialog`, `EditBookmarkFolderDialog`, `ViewSslCertificateDialog`.
     // It is also used in `onCreate()`, `onCreateHomeScreenShortcutCreate()`, and `applyDomainSettings`.
     public static Bitmap favoriteIconBitmap;
     // `favoriteIconBitmap` is public static so it can be accessed from `CreateHomeScreenShortcutDialog`, `BookmarksActivity`, `CreateBookmarkDialog`, `CreateBookmarkFolderDialog`, `EditBookmarkDialog`, `EditBookmarkFolderDialog`, `ViewSslCertificateDialog`.
     // It is also used in `onCreate()`, `onCreateHomeScreenShortcutCreate()`, and `applyDomainSettings`.
     public static Bitmap favoriteIconBitmap;
@@ -149,6 +146,9 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation
     public static boolean reloadOnRestartBoolean;
 
 
     public static boolean reloadOnRestartBoolean;
 
 
+    // `appBar` is used in `onCreate()`, `onOptionsItemSelected()`, `closeFindOnPage()`, and `applyAppSettings()`.
+    private ActionBar appBar;
+
     // `navigatingHistory` is used in `onCreate()`, `onNavigationItemSelected()`, and `applyDomainSettings()`.
     private boolean navigatingHistory;
 
     // `navigatingHistory` is used in `onCreate()`, `onNavigationItemSelected()`, and `applyDomainSettings()`.
     private boolean navigatingHistory;
 
@@ -292,14 +292,37 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation
     // `mainWebViewRelativeLayout` is used in `onCreate()` and `onNavigationItemSelected()`.
     private RelativeLayout mainWebViewRelativeLayout;
 
     // `mainWebViewRelativeLayout` is used in `onCreate()` and `onNavigationItemSelected()`.
     private RelativeLayout mainWebViewRelativeLayout;
 
+    // `darkTheme` is used in `onCreate()`, `applyAppSettings()`, and `applyDomainSettings()`.
+    private boolean darkTheme;
+
     @Override
     // Remove Android Studio's warning about the dangers of using SetJavaScriptEnabled.  The whole premise of Privacy Browser is built around an understanding of these dangers.
     @SuppressLint("SetJavaScriptEnabled")
     // Remove Android Studio's warning about deprecations.  We have to use the deprecated `getColor()` until API >= 23.
     @SuppressWarnings("deprecation")
     protected void onCreate(Bundle savedInstanceState) {
     @Override
     // Remove Android Studio's warning about the dangers of using SetJavaScriptEnabled.  The whole premise of Privacy Browser is built around an understanding of these dangers.
     @SuppressLint("SetJavaScriptEnabled")
     // Remove Android Studio's warning about deprecations.  We have to use the deprecated `getColor()` until API >= 23.
     @SuppressWarnings("deprecation")
     protected void onCreate(Bundle savedInstanceState) {
+        // Get a handle for `sharedPreferences`.  `this` references the current context.
+        SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
+
+        // Get the theme preference.
+        darkTheme = sharedPreferences.getBoolean("dark_theme", false);
+
+        // Set the activity theme.
+        if (darkTheme) {
+            setTheme(R.style.PrivacyBrowserDark);
+        } else {
+            setTheme(R.style.PrivacyBrowserLight);
+        }
+
+        // Run the default commands.
         super.onCreate(savedInstanceState);
         super.onCreate(savedInstanceState);
-        setContentView(R.layout.main_drawerlayout);
+
+        // Set the content view according to the theme..
+        if (darkTheme) {
+            setContentView(R.layout.main_drawerlayout_dark);
+        } else {
+            setContentView(R.layout.main_drawerlayout_light);
+        }
 
         // Get a handle for `inputMethodManager`.
         inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
 
         // Get a handle for `inputMethodManager`.
         inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
@@ -2218,6 +2241,13 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation
             // Set the proxy.  `this` refers to the current activity where an `AlertDialog` might be displayed.
             OrbotProxyHelper.setProxy(getApplicationContext(), this, "localhost", "8118");
 
             // Set the proxy.  `this` refers to the current activity where an `AlertDialog` might be displayed.
             OrbotProxyHelper.setProxy(getApplicationContext(), this, "localhost", "8118");
 
+            // Set the `appBar` background to indicate proxying through Orbot is enabled.  `this` refers to the context.
+            if (darkTheme) {
+                appBar.setBackgroundDrawable(ContextCompat.getDrawable(this, R.color.dark_blue_30));
+            } else {
+                appBar.setBackgroundDrawable(ContextCompat.getDrawable(this, R.color.blue_50));
+            }
+
             // Display a message to the user if we are waiting on Orbot.
             if (!orbotStatus.equals("ON")) {
                 // Set `waitingForOrbot`.
             // Display a message to the user if we are waiting on Orbot.
             if (!orbotStatus.equals("ON")) {
                 // Set `waitingForOrbot`.
@@ -2245,6 +2275,13 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation
             // Reset the proxy to default.  The host is `""` and the port is `"0"`.
             OrbotProxyHelper.setProxy(getApplicationContext(), this, "", "0");
 
             // Reset the proxy to default.  The host is `""` and the port is `"0"`.
             OrbotProxyHelper.setProxy(getApplicationContext(), this, "", "0");
 
+            // Set the default `appBar` background.  `this` refers to the context.
+            if (darkTheme) {
+                appBar.setBackgroundDrawable(ContextCompat.getDrawable(this, R.color.gray_900));
+            } else {
+                appBar.setBackgroundDrawable(ContextCompat.getDrawable(this, R.color.gray_100));
+            }
+
             // Reset `waitingForOrbot.
             waitingForOrbot = false;
         }
             // Reset `waitingForOrbot.
             waitingForOrbot = false;
         }
@@ -2444,7 +2481,11 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation
                 }
 
                 // 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.
                 }
 
                 // 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.
-                urlAppBarRelativeLayout.setBackground(getResources().getDrawable(R.drawable.url_bar_background_green));
+                if (darkTheme) {
+                    urlAppBarRelativeLayout.setBackground(getResources().getDrawable(R.drawable.url_bar_background_dark_blue));
+                } else {
+                    urlAppBarRelativeLayout.setBackground(getResources().getDrawable(R.drawable.url_bar_background_light_green));
+                }
             } else {  // The URL we are loading does not have custom domain settings.  Load the defaults.
                 // Store the values from `sharedPreferences` in variables.
                 javaScriptEnabled = sharedPreferences.getBoolean("javascript_enabled", false);
             } else {  // The URL we are loading does not have custom domain settings.  Load the defaults.
                 // Store the values from `sharedPreferences` in variables.
                 javaScriptEnabled = sharedPreferences.getBoolean("javascript_enabled", false);
index 78a92f870237089eae07cdf49183318f886df79b..14d39bd972a7ef06cbe2c723fbc8ab3326904c16 100644 (file)
@@ -73,6 +73,7 @@ public class SettingsFragment extends PreferenceFragment {
         final Preference defaultFontSizePreference = findPreference("default_font_size");
         final Preference swipeToRefreshPreference = findPreference("swipe_to_refresh");
         final Preference displayAdditionalAppBarIconsPreference = findPreference("display_additional_app_bar_icons");
         final Preference defaultFontSizePreference = findPreference("default_font_size");
         final Preference swipeToRefreshPreference = findPreference("swipe_to_refresh");
         final Preference displayAdditionalAppBarIconsPreference = findPreference("display_additional_app_bar_icons");
+        final Preference darkThemePreference = findPreference("dark_theme");
         final Preference displayWebpageImagesPreference = findPreference("display_webpage_images");
 
         // Set dependencies.
         final Preference displayWebpageImagesPreference = findPreference("display_webpage_images");
 
         // Set dependencies.
@@ -356,6 +357,13 @@ public class SettingsFragment extends PreferenceFragment {
             displayAdditionalAppBarIconsPreference.setIcon(R.drawable.more_disabled);
         }
 
             displayAdditionalAppBarIconsPreference.setIcon(R.drawable.more_disabled);
         }
 
+        // Set the `darkThemePreference` icon.
+        if (savedPreferences.getBoolean("dark_theme", false)) {
+            darkThemePreference.setIcon(R.drawable.theme_dark);
+        } else {
+            darkThemePreference.setIcon(R.drawable.theme_light);
+        }
+
         // Set the `displayWebpageImagesPreference` icon.
         if (savedPreferences.getBoolean("display_webpage_images", true)) {
             displayWebpageImagesPreference.setIcon(R.drawable.images_enabled);
         // Set the `displayWebpageImagesPreference` icon.
         if (savedPreferences.getBoolean("display_webpage_images", true)) {
             displayWebpageImagesPreference.setIcon(R.drawable.images_enabled);
@@ -777,6 +785,15 @@ public class SettingsFragment extends PreferenceFragment {
                         }
                         break;
 
                         }
                         break;
 
+                    case "dark_theme":
+                        // Update the icon.
+                        if (sharedPreferences.getBoolean("dark_theme", false)) {
+                            darkThemePreference.setIcon(R.drawable.theme_dark);
+                        } else {
+                            darkThemePreference.setIcon(R.drawable.theme_light);
+                        }
+                        break;
+
                     case "display_webpage_images":
                         if (sharedPreferences.getBoolean("display_webpage_images", true)) {
                             // Update the icon.
                     case "display_webpage_images":
                         if (sharedPreferences.getBoolean("display_webpage_images", true)) {
                             // Update the icon.
@@ -792,10 +809,6 @@ public class SettingsFragment extends PreferenceFragment {
                             MainWebViewActivity.reloadOnRestartBoolean = true;
                         }
                         break;
                             MainWebViewActivity.reloadOnRestartBoolean = true;
                         }
                         break;
-
-                    default:
-                        // If no match, do nothing.
-                        break;
                 }
             }
         };
                 }
             }
         };
index 696bd504f76df088cda6c95bcd7b5bd6d0ea8ac9..2e1b22b692f6fb79b75cdcd80917da76662f8cf2 100644 (file)
@@ -25,7 +25,6 @@ import android.content.DialogInterface;
 import android.content.Intent;
 import android.content.pm.PackageManager;
 import android.net.Proxy;
 import android.content.Intent;
 import android.content.pm.PackageManager;
 import android.net.Proxy;
-import android.support.v4.content.ContextCompat;
 import android.support.v7.app.AlertDialog;
 import android.util.ArrayMap;
 import android.util.Log;
 import android.support.v7.app.AlertDialog;
 import android.util.ArrayMap;
 import android.util.Log;
@@ -77,9 +76,6 @@ public class OrbotProxyHelper {
         }
 
         if (proxyPort.equals("8118")) {  // Orbot proxy was turned on.
         }
 
         if (proxyPort.equals("8118")) {  // Orbot proxy was turned on.
-            // Set the `appBar` background to be light blue if Orbot proxy support is enabled.
-            MainWebViewActivity.appBar.setBackgroundDrawable(ContextCompat.getDrawable(privacyBrowserContext, R.color.blue_50));
-
             try {  // Check to see if Orbot is installed.
                 PackageManager packageManager = privacyBrowserContext.getPackageManager();
                 packageManager.getPackageInfo("org.torproject.android", PackageManager.GET_ACTIVITIES);
             try {  // Check to see if Orbot is installed.
                 PackageManager packageManager = privacyBrowserContext.getPackageManager();
                 packageManager.getPackageInfo("org.torproject.android", PackageManager.GET_ACTIVITIES);
@@ -113,8 +109,6 @@ public class OrbotProxyHelper {
                 AlertDialog alertDialog = dialogBuilder.create();
                 alertDialog.show();
             }
                 AlertDialog alertDialog = dialogBuilder.create();
                 alertDialog.show();
             }
-        } else {  // Otherwise set the default grey `appBar` background.
-            MainWebViewActivity.appBar.setBackgroundDrawable(ContextCompat.getDrawable(privacyBrowserContext, R.color.gray_100));
         }
     }
 }
         }
     }
 }
diff --git a/app/src/main/res/color/dark_primary_text_color_selector.xml b/app/src/main/res/color/dark_primary_text_color_selector.xml
new file mode 100644 (file)
index 0000000..27f283e
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+  Copyright © 2016-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/>. -->
+
+<!-- Change the dark theme enabled text from white to gray. -->
+<selector xmlns:android="http://schemas.android.com/apk/res/android" >
+    <!-- `#4Dffffff` comes from the built-in `@color/primary_text_disabled_material_dark`. -->
+    <item android:state_enabled="false" android:color="#4Dffffff" />
+    <item android:color="@color/gray_300" />
+</selector>
\ No newline at end of file
diff --git a/app/src/main/res/drawable/theme_dark.xml b/app/src/main/res/drawable/theme_dark.xml
new file mode 100644 (file)
index 0000000..d294217
--- /dev/null
@@ -0,0 +1,18 @@
+<!-- `theme_dark.xml` comes from the Android Material icon set, where it is called `ic_style`.  It is released under the Apache License 2.0. -->
+
+<!-- `tools:ignore="VectorRaster"` removes the lint warning about `android:autoMirrored="true"` not applying to API < 21. -->
+<vector
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:autoMirrored="true"
+    android:height="24dp"
+    android:width="24dp"
+    android:viewportWidth="24.0"
+    android:viewportHeight="24.0"
+    tools:ignore="VectorRaster">
+
+    <!-- We have to use a hard coded color code until API >= 21.  Then we can use `@color`. -->
+    <path
+        android:fillColor="#FF000000"
+        android:pathData="M2.53,19.65l1.34,0.56v-9.03l-2.43,5.86c-0.41,1.02 0.08,2.19 1.09,2.61zM22.03,15.95L17.07,3.98c-0.31,-0.75 -1.04,-1.21 -1.81,-1.23 -0.26,0 -0.53,0.04 -0.79,0.15L7.1,5.95c-0.75,0.31 -1.21,1.03 -1.23,1.8 -0.01,0.27 0.04,0.54 0.15,0.8l4.96,11.97c0.31,0.76 1.05,1.22 1.83,1.23 0.26,0 0.52,-0.05 0.77,-0.15l7.36,-3.05c1.02,-0.42 1.51,-1.59 1.09,-2.6zM7.88,8.75c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1zM5.88,19.75c0,1.1 0.9,2 2,2h1.45l-3.45,-8.34v6.34z"/>
+</vector>
diff --git a/app/src/main/res/drawable/theme_light.xml b/app/src/main/res/drawable/theme_light.xml
new file mode 100644 (file)
index 0000000..339b1e0
--- /dev/null
@@ -0,0 +1,18 @@
+<!-- `theme_light.xml` comes from the Android Material icon set, where it is called `ic_style`.  It is released under the Apache License 2.0. -->
+
+<!-- `tools:ignore="VectorRaster"` removes the lint warning about `android:autoMirrored="true"` not applying to API < 21. -->
+<vector
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:autoMirrored="true"
+    android:height="24dp"
+    android:width="24dp"
+    android:viewportWidth="24.0"
+    android:viewportHeight="24.0"
+    tools:ignore="VectorRaster">
+
+    <!-- We have to use a hard coded color code until API >= 21.  Then we can use `@color`. -->
+    <path
+        android:fillColor="#FF1565C0"
+        android:pathData="M2.53,19.65l1.34,0.56v-9.03l-2.43,5.86c-0.41,1.02 0.08,2.19 1.09,2.61zM22.03,15.95L17.07,3.98c-0.31,-0.75 -1.04,-1.21 -1.81,-1.23 -0.26,0 -0.53,0.04 -0.79,0.15L7.1,5.95c-0.75,0.31 -1.21,1.03 -1.23,1.8 -0.01,0.27 0.04,0.54 0.15,0.8l4.96,11.97c0.31,0.76 1.05,1.22 1.83,1.23 0.26,0 0.52,-0.05 0.77,-0.15l7.36,-3.05c1.02,-0.42 1.51,-1.59 1.09,-2.6zM7.88,8.75c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1zM5.88,19.75c0,1.1 0.9,2 2,2h1.45l-3.45,-8.34v6.34z"/>
+</vector>
diff --git a/app/src/main/res/drawable/url_bar_background_dark_blue.xml b/app/src/main/res/drawable/url_bar_background_dark_blue.xml
new file mode 100644 (file)
index 0000000..12bf4e8
--- /dev/null
@@ -0,0 +1,30 @@
+<?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/dark_blue_40" />
+
+        <corners
+            android:radius="10dp" />
+</shape>
\ No newline at end of file
diff --git a/app/src/main/res/drawable/url_bar_background_green.xml b/app/src/main/res/drawable/url_bar_background_green.xml
deleted file mode 100644 (file)
index c385fc4..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<?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
diff --git a/app/src/main/res/drawable/url_bar_background_light_green.xml b/app/src/main/res/drawable/url_bar_background_light_green.xml
new file mode 100644 (file)
index 0000000..c5bf2d4
--- /dev/null
@@ -0,0 +1,30 @@
+<?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_200" />
+
+        <corners
+            android:radius="10dp" />
+</shape>
\ No newline at end of file
index 56ebc9413bac3ca6fbe642b50fd92223860d38d0..b8ddd1d88b3e498989190f8a768c9a7e8742eceb 100644 (file)
@@ -41,7 +41,7 @@
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
             android:background="@color/blue_700"
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
             android:background="@color/blue_700"
-            android:theme="@style/AppBarOverlay" >
+            android:theme="@style/PrivacyBrowserAppBarOverlayLight" >
 
             <!-- android:theme="@style/PrivacyBrowser.DarkAppBar" makes the text and icons in the AppBar white. -->
             <android.support.v7.widget.Toolbar
 
             <!-- android:theme="@style/PrivacyBrowser.DarkAppBar" makes the text and icons in the AppBar white. -->
             <android.support.v7.widget.Toolbar
@@ -50,7 +50,7 @@
                 android:layout_width="match_parent"
                 android:background="@color/blue_700"
                 android:theme="@style/DarkAppBar"
                 android:layout_width="match_parent"
                 android:background="@color/blue_700"
                 android:theme="@style/DarkAppBar"
-                app:popupTheme="@style/LightPopupOverlay" />
+                app:popupTheme="@style/PrivacyBrowserPopupOverlayLight" />
 
             <android.support.design.widget.TabLayout
                 android:id="@+id/about_tablayout"
 
             <android.support.design.widget.TabLayout
                 android:id="@+id/about_tablayout"
index b01868f4930532adfe7e3624bf3d45ade550509f..ee1e2ebc0ae79d927e0e6312e8247d697985928b 100644 (file)
@@ -38,7 +38,7 @@
             android:id="@+id/bookmarks_appbarlayout"
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
             android:id="@+id/bookmarks_appbarlayout"
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
-            android:theme="@style/AppBarOverlay" >
+            android:theme="@style/PrivacyBrowserAppBarOverlayLight" >
 
             <!-- android:theme="@style/PrivacyBrowser.DarkAppBar" makes the text and icons in the AppBar white. -->
             <android.support.v7.widget.Toolbar
 
             <!-- android:theme="@style/PrivacyBrowser.DarkAppBar" makes the text and icons in the AppBar white. -->
             <android.support.v7.widget.Toolbar
@@ -47,7 +47,7 @@
                 android:layout_width="match_parent"
                 android:background="@color/blue_700"
                 android:theme="@style/DarkAppBar"
                 android:layout_width="match_parent"
                 android:background="@color/blue_700"
                 android:theme="@style/DarkAppBar"
-                app:popupTheme="@style/LightPopupOverlay" />
+                app:popupTheme="@style/PrivacyBrowserPopupOverlayLight" />
         </android.support.design.widget.AppBarLayout>
 
         <!-- `android:choiceMode="multipleChoiceModal"` allows the contextual action menu to select more than one item at a time.
         </android.support.design.widget.AppBarLayout>
 
         <!-- `android:choiceMode="multipleChoiceModal"` allows the contextual action menu to select more than one item at a time.
index 35c9139c2783f57bad0e1a112254ea8ee3b0457d..ff19d9cbcdfac15c36f6df930347e1f834117a33 100644 (file)
@@ -39,7 +39,7 @@
             android:id="@+id/bookmarks_database_view_appbarlayout"
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
             android:id="@+id/bookmarks_database_view_appbarlayout"
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
-            android:theme="@style/AppBarOverlay" >
+            android:theme="@style/PrivacyBrowserAppBarOverlayLight" >
 
             <android.support.v7.widget.Toolbar
                 android:id="@+id/bookmarks_database_view_toolbar"
 
             <android.support.v7.widget.Toolbar
                 android:id="@+id/bookmarks_database_view_toolbar"
@@ -47,7 +47,7 @@
                 android:layout_width="match_parent"
                 android:background="@color/blue_700"
                 android:theme="@style/DarkAppBar"
                 android:layout_width="match_parent"
                 android:background="@color/blue_700"
                 android:theme="@style/DarkAppBar"
-                app:popupTheme="@style/LightPopupOverlay" />
+                app:popupTheme="@style/PrivacyBrowserPopupOverlayLight" />
         </android.support.design.widget.AppBarLayout>
 
         <ListView
         </android.support.design.widget.AppBarLayout>
 
         <ListView
index 49aba2dfeecd961092dffeb9055636a95e10dcbb..ab14206de3109bf898ee5b84d5c0a7eaf325e817 100644 (file)
@@ -36,7 +36,7 @@
         <android.support.design.widget.AppBarLayout
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
         <android.support.design.widget.AppBarLayout
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
-            android:theme="@style/AppBarOverlay" >
+            android:theme="@style/PrivacyBrowserAppBarOverlayLight" >
 
             <!-- `android:theme="@style/PrivacyBrowser.DarkAppBar"1 makes the text and icons in the `AppBar` white. -->
             <android.support.v7.widget.Toolbar
 
             <!-- `android:theme="@style/PrivacyBrowser.DarkAppBar"1 makes the text and icons in the `AppBar` white. -->
             <android.support.v7.widget.Toolbar
@@ -45,7 +45,7 @@
                 android:layout_width="match_parent"
                 android:background="@color/blue_700"
                 android:theme="@style/DarkAppBar"
                 android:layout_width="match_parent"
                 android:background="@color/blue_700"
                 android:theme="@style/DarkAppBar"
-                app:popupTheme="@style/LightPopupOverlay" />
+                app:popupTheme="@style/PrivacyBrowserPopupOverlayLight" />
         </android.support.design.widget.AppBarLayout>
 
         <ScrollView
         </android.support.design.widget.AppBarLayout>
 
         <ScrollView
index b7572dfcb7055c5adac54e4f0485f594e3154cf8..4a6e2a4a1cc5f71a5686755e759b6a8c1cb69498 100644 (file)
@@ -35,7 +35,7 @@
         <android.support.design.widget.AppBarLayout
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
         <android.support.design.widget.AppBarLayout
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
-            android:theme="@style/AppBarOverlay" >
+            android:theme="@style/PrivacyBrowserAppBarOverlayLight" >
 
             <!-- `android:theme="@style/PrivacyBrowser.DarkAppBar"` makes the text and icons in the `AppBar` white. -->
             <android.support.v7.widget.Toolbar
 
             <!-- `android:theme="@style/PrivacyBrowser.DarkAppBar"` makes the text and icons in the `AppBar` white. -->
             <android.support.v7.widget.Toolbar
@@ -44,7 +44,7 @@
                 android:layout_width="match_parent"
                 android:background="@color/blue_700"
                 android:theme="@style/DarkAppBar"
                 android:layout_width="match_parent"
                 android:background="@color/blue_700"
                 android:theme="@style/DarkAppBar"
-                app:popupTheme="@style/LightPopupOverlay" />
+                app:popupTheme="@style/PrivacyBrowserPopupOverlayLight" />
         </android.support.design.widget.AppBarLayout>
 
         <include layout="@layout/domains_list" />
         </android.support.design.widget.AppBarLayout>
 
         <include layout="@layout/domains_list" />
index 223f50868bbdada635ff18c184d2a5d5d09f37e9..54f39617cd8ce6759eb044fc29d9627b0eb12c4d 100644 (file)
@@ -41,7 +41,7 @@
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
             android:background="@color/blue_700"
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
             android:background="@color/blue_700"
-            android:theme="@style/AppBarOverlay" >
+            android:theme="@style/PrivacyBrowserAppBarOverlayLight" >
 
             <!-- android:theme="@style/PrivacyBrowser.DarkAppBar" makes the text and icons in the AppBar white. -->
             <android.support.v7.widget.Toolbar
 
             <!-- android:theme="@style/PrivacyBrowser.DarkAppBar" makes the text and icons in the AppBar white. -->
             <android.support.v7.widget.Toolbar
@@ -50,7 +50,7 @@
                 android:layout_height="wrap_content"
                 android:background="@color/blue_700"
                 android:theme="@style/DarkAppBar"
                 android:layout_height="wrap_content"
                 android:background="@color/blue_700"
                 android:theme="@style/DarkAppBar"
-                app:popupTheme="@style/LightPopupOverlay" />
+                app:popupTheme="@style/PrivacyBrowserPopupOverlayLight" />
 
             <android.support.design.widget.TabLayout
                 android:id="@+id/guide_tablayout"
 
             <android.support.design.widget.TabLayout
                 android:id="@+id/guide_tablayout"
diff --git a/app/src/main/res/layout/main_drawerlayout.xml b/app/src/main/res/layout/main_drawerlayout.xml
deleted file mode 100644 (file)
index d283515..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!--
-  Copyright © 2015-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/>. -->
-
-<android.support.v4.widget.DrawerLayout
-    android:id="@+id/drawerlayout"
-    xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:app="http://schemas.android.com/apk/res-auto"
-    android:layout_height="match_parent"
-    android:layout_width="match_parent" >
-
-    <!-- android:fitsSystemWindows="true" moves rootCoordinatorLayout below the system status bar.
-        When it is specified the theme should include <item name="android:windowTranslucentStatus">true</item>.
-        Setting the layout root to be focusableInTouchMode prevents urlTextBox from stealing focus on launch and opening the keyboard. -->
-    <android.support.design.widget.CoordinatorLayout
-        android:id="@+id/root_coordinatorlayout"
-        xmlns:tools="http://schemas.android.com/tools"
-        tools:context="com.stoutner.privacybrowser.activities.MainWebViewActivity"
-        android:layout_height="match_parent"
-        android:layout_width="match_parent"
-        android:fitsSystemWindows="true"
-        android:focusable="true"
-        android:focusableInTouchMode="true" >
-
-        <!-- The purpose of the LinearLayout is to place the included main_webview below appBarLayout. -->
-        <LinearLayout
-            android:layout_height="match_parent"
-            android:layout_width="match_parent"
-            android:orientation="vertical" >
-
-            <android.support.design.widget.AppBarLayout
-                android:id="@+id/app_bar_layout"
-                android:layout_height="wrap_content"
-                android:layout_width="match_parent"
-                android:theme="@style/AppBarOverlay" >
-
-                <!-- The `FrameLayout` allows `appBar` and `find_on_page_app_bar` to occupy the same space. -->
-                <FrameLayout
-                    android:layout_height="wrap_content"
-                    android:layout_width="match_parent" >
-
-                    <android.support.v7.widget.Toolbar
-                        android:id="@+id/app_bar"
-                        android:layout_height="wrap_content"
-                        android:layout_width="match_parent"
-                        android:background="@color/gray_100"
-                        app:popupTheme="@style/LightPopupOverlay" />
-
-                    <!-- `android:max` changes the maximum `ProgressBar` value from 10000 to 100 to match progress percentage.
-                        `android:layout_height="2dp"` works best for API >= 23, but `3dp` is required for visibility on API <= 22.
-                        `tools:ignore="UnusedAttribute"` removes the lint waring about `progressTint` and `progressBackgroundTint` not applying to API < 21. -->
-                    <ProgressBar
-                        android:id="@+id/progress_bar"
-                        style="?android:attr/progressBarStyleHorizontal"
-                        android:layout_width="fill_parent"
-                        android:layout_height="3dp"
-                        android:layout_gravity="bottom"
-                        android:max="100"
-                        android:progressTint="@color/blue_700"
-                        android:progressBackgroundTint="@color/transparent"
-                        android:visibility="gone"
-                        tools:ignore="UnusedAttribute" />
-
-                    <include layout="@layout/find_on_page_app_bar" />
-                </FrameLayout>
-            </android.support.design.widget.AppBarLayout>
-
-            <include layout="@layout/main_webview" />
-        </LinearLayout>
-
-        <!-- `full_screen_video_framelayout` is used to display full screen videos.  It is initially `android:visibility="gone"` to hide it from view. -->
-        <FrameLayout
-            android:id="@+id/full_screen_video_framelayout"
-            android:layout_height="match_parent"
-            android:layout_width="match_parent"
-            android:visibility="gone"
-            android:background="@color/black" />
-    </android.support.design.widget.CoordinatorLayout>
-
-    <!-- The navigation drawer. -->
-    <android.support.design.widget.NavigationView
-        android:id="@+id/navigationview"
-        android:layout_height="match_parent"
-        android:layout_width="wrap_content"
-        android:layout_gravity="start"
-        app:headerLayout="@layout/navigation_header"
-        app:menu="@menu/webview_navigation_menu"
-        app:itemIconTint="@color/blue_800" />
-</android.support.v4.widget.DrawerLayout>
\ No newline at end of file
diff --git a/app/src/main/res/layout/main_drawerlayout_dark.xml b/app/src/main/res/layout/main_drawerlayout_dark.xml
new file mode 100644 (file)
index 0000000..54e8bf6
--- /dev/null
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+  Copyright © 2015-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/>. -->
+
+<android.support.v4.widget.DrawerLayout
+    android:id="@+id/drawerlayout"
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:layout_height="match_parent"
+    android:layout_width="match_parent" >
+
+    <!-- android:fitsSystemWindows="true" moves rootCoordinatorLayout below the system status bar.
+        When it is specified the theme should include <item name="android:windowTranslucentStatus">true</item>.
+        Setting the layout root to be focusableInTouchMode prevents urlTextBox from stealing focus on launch and opening the keyboard. -->
+    <android.support.design.widget.CoordinatorLayout
+        android:id="@+id/root_coordinatorlayout"
+        xmlns:tools="http://schemas.android.com/tools"
+        tools:context="com.stoutner.privacybrowser.activities.MainWebViewActivity"
+        android:layout_height="match_parent"
+        android:layout_width="match_parent"
+        android:fitsSystemWindows="true"
+        android:focusable="true"
+        android:focusableInTouchMode="true" >
+
+        <!-- The purpose of the LinearLayout is to place the included main_webview below appBarLayout. -->
+        <LinearLayout
+            android:layout_height="match_parent"
+            android:layout_width="match_parent"
+            android:orientation="vertical" >
+
+            <android.support.design.widget.AppBarLayout
+                android:id="@+id/app_bar_layout"
+                android:layout_height="wrap_content"
+                android:layout_width="match_parent" >
+
+                <!-- The `FrameLayout` allows `appBar` and `find_on_page_app_bar` to occupy the same space. -->
+                <FrameLayout
+                    android:layout_height="wrap_content"
+                    android:layout_width="match_parent" >
+
+                    <android.support.v7.widget.Toolbar
+                        android:id="@+id/app_bar"
+                        android:layout_height="wrap_content"
+                        android:layout_width="match_parent" />
+
+                    <!-- `android:max` changes the maximum `ProgressBar` value from 10000 to 100 to match progress percentage.
+                        `android:layout_height="2dp"` works best for API >= 23, but `3dp` is required for visibility on API <= 22.
+                        `tools:ignore="UnusedAttribute"` removes the lint waring about `progressTint` and `progressBackgroundTint` not applying to API < 21. -->
+                    <ProgressBar
+                        android:id="@+id/progress_bar"
+                        style="?android:attr/progressBarStyleHorizontal"
+                        android:layout_width="fill_parent"
+                        android:layout_height="3dp"
+                        android:layout_gravity="bottom"
+                        android:max="100"
+                        android:progressTint="@color/blue_900"
+                        android:progressBackgroundTint="@color/transparent"
+                        android:visibility="gone"
+                        tools:ignore="UnusedAttribute" />
+
+                    <include layout="@layout/find_on_page_app_bar" />
+                </FrameLayout>
+            </android.support.design.widget.AppBarLayout>
+
+            <include layout="@layout/main_webview" />
+        </LinearLayout>
+
+        <!-- `full_screen_video_framelayout` is used to display full screen videos.  It is initially `android:visibility="gone"` to hide it from view. -->
+        <FrameLayout
+            android:id="@+id/full_screen_video_framelayout"
+            android:layout_height="match_parent"
+            android:layout_width="match_parent"
+            android:visibility="gone"
+            android:background="@color/black" />
+    </android.support.design.widget.CoordinatorLayout>
+
+    <!-- The navigation drawer. -->
+    <android.support.design.widget.NavigationView
+        android:id="@+id/navigationview"
+        android:layout_height="match_parent"
+        android:layout_width="wrap_content"
+        android:layout_gravity="start"
+        app:headerLayout="@layout/navigation_header_dark"
+        app:menu="@menu/webview_navigation_menu"
+        app:itemIconTint="@color/blue_900" />
+</android.support.v4.widget.DrawerLayout>
\ No newline at end of file
diff --git a/app/src/main/res/layout/main_drawerlayout_light.xml b/app/src/main/res/layout/main_drawerlayout_light.xml
new file mode 100644 (file)
index 0000000..00048dc
--- /dev/null
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+  Copyright © 2015-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/>. -->
+
+<android.support.v4.widget.DrawerLayout
+    android:id="@+id/drawerlayout"
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:layout_height="match_parent"
+    android:layout_width="match_parent" >
+
+    <!-- android:fitsSystemWindows="true" moves rootCoordinatorLayout below the system status bar.
+        When it is specified the theme should include <item name="android:windowTranslucentStatus">true</item>.
+        Setting the layout root to be focusableInTouchMode prevents urlTextBox from stealing focus on launch and opening the keyboard. -->
+    <android.support.design.widget.CoordinatorLayout
+        android:id="@+id/root_coordinatorlayout"
+        xmlns:tools="http://schemas.android.com/tools"
+        tools:context="com.stoutner.privacybrowser.activities.MainWebViewActivity"
+        android:layout_height="match_parent"
+        android:layout_width="match_parent"
+        android:fitsSystemWindows="true"
+        android:focusable="true"
+        android:focusableInTouchMode="true" >
+
+        <!-- The purpose of the LinearLayout is to place the included main_webview below appBarLayout. -->
+        <LinearLayout
+            android:layout_height="match_parent"
+            android:layout_width="match_parent"
+            android:orientation="vertical" >
+
+            <!-- The `AppBarLayout` theme has to be defined here because the activity uses a `NoActionBar` theme. -->
+            <android.support.design.widget.AppBarLayout
+                android:id="@+id/app_bar_layout"
+                android:layout_height="wrap_content"
+                android:layout_width="match_parent"
+                android:theme="@style/PrivacyBrowserAppBarOverlayLight" >
+
+                <!-- The `FrameLayout` allows `appBar` and `find_on_page_app_bar` to occupy the same space. -->
+                <FrameLayout
+                    android:layout_height="wrap_content"
+                    android:layout_width="match_parent" >
+
+                    <android.support.v7.widget.Toolbar
+                        android:id="@+id/app_bar"
+                        android:layout_height="wrap_content"
+                        android:layout_width="match_parent" />
+
+                    <!-- `android:max` changes the maximum `ProgressBar` value from 10000 to 100 to match progress percentage.
+                        `android:layout_height="2dp"` works best for API >= 23, but `3dp` is required for visibility on API <= 22.
+                        `tools:ignore="UnusedAttribute"` removes the lint waring about `progressTint` and `progressBackgroundTint` not applying to API < 21. -->
+                    <ProgressBar
+                        android:id="@+id/progress_bar"
+                        style="?android:attr/progressBarStyleHorizontal"
+                        android:layout_width="fill_parent"
+                        android:layout_height="3dp"
+                        android:layout_gravity="bottom"
+                        android:max="100"
+                        android:progressTint="@color/blue_700"
+                        android:progressBackgroundTint="@color/transparent"
+                        android:visibility="gone"
+                        tools:ignore="UnusedAttribute" />
+
+                    <include layout="@layout/find_on_page_app_bar" />
+                </FrameLayout>
+            </android.support.design.widget.AppBarLayout>
+
+            <include layout="@layout/main_webview" />
+        </LinearLayout>
+
+        <!-- `full_screen_video_framelayout` is used to display full screen videos.  It is initially `android:visibility="gone"` to hide it from view. -->
+        <FrameLayout
+            android:id="@+id/full_screen_video_framelayout"
+            android:layout_height="match_parent"
+            android:layout_width="match_parent"
+            android:visibility="gone"
+            android:background="@color/black" />
+    </android.support.design.widget.CoordinatorLayout>
+
+    <!-- The navigation drawer. -->
+    <android.support.design.widget.NavigationView
+        android:id="@+id/navigationview"
+        android:layout_height="match_parent"
+        android:layout_width="wrap_content"
+        android:layout_gravity="start"
+        app:headerLayout="@layout/navigation_header_light"
+        app:menu="@menu/webview_navigation_menu"
+        app:itemIconTint="@color/blue_800" />
+</android.support.v4.widget.DrawerLayout>
\ No newline at end of file
index 6f1d3b07e6b544c37a00304959b6535d000971a5..1b14eff377a448e7fb1a6e497428c9352fce1e88 100644 (file)
@@ -26,8 +26,7 @@
     android:layout_height="0dp"
     android:layout_width="match_parent"
     android:layout_weight="1"
     android:layout_height="0dp"
     android:layout_width="match_parent"
     android:layout_weight="1"
-    tools:context="com.stoutner.privacybrowser.activities.MainWebViewActivity"
-    tools:showIn="@layout/main_drawerlayout" >
+    tools:context="com.stoutner.privacybrowser.activities.MainWebViewActivity" >
 
     <!-- This `TextView` has an id of `adView` so that the ad commands (which do nothing in the standard flavor) don't produce errors. -->
     <TextView
 
     <!-- This `TextView` has an id of `adView` so that the ad commands (which do nothing in the standard flavor) don't produce errors. -->
     <TextView
diff --git a/app/src/main/res/layout/navigation_header.xml b/app/src/main/res/layout/navigation_header.xml
deleted file mode 100644 (file)
index 3875101..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!--
-  Copyright © 2016-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/>. -->
-
-<TextView
-    xmlns:android="http://schemas.android.com/apk/res/android"
-    android:id="@+id/navigationText"
-    android:layout_width="match_parent"
-    android:layout_height="wrap_content"
-    android:text="@string/navigation"
-    android:paddingTop="35dp"
-    android:paddingBottom="8dp"
-    android:paddingStart="15dp"
-    android:paddingEnd="15dp"
-    android:textStyle="bold"
-    android:textSize="20sp"
-    android:background="@color/blue_700"
-    android:textColor="@color/white" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/navigation_header_dark.xml b/app/src/main/res/layout/navigation_header_dark.xml
new file mode 100644 (file)
index 0000000..ef7de3c
--- /dev/null
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+  Copyright © 2016-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/>. -->
+
+<TextView
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/navigationText"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    android:text="@string/navigation"
+    android:paddingTop="35dp"
+    android:paddingBottom="8dp"
+    android:paddingStart="15dp"
+    android:paddingEnd="15dp"
+    android:textStyle="bold"
+    android:textSize="20sp"
+    android:background="@color/blue_900"
+    android:textColor="@color/gray_300" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/navigation_header_light.xml b/app/src/main/res/layout/navigation_header_light.xml
new file mode 100644 (file)
index 0000000..3875101
--- /dev/null
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+  Copyright © 2016-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/>. -->
+
+<TextView
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/navigationText"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    android:text="@string/navigation"
+    android:paddingTop="35dp"
+    android:paddingBottom="8dp"
+    android:paddingStart="15dp"
+    android:paddingEnd="15dp"
+    android:textStyle="bold"
+    android:textSize="20sp"
+    android:background="@color/blue_700"
+    android:textColor="@color/white" />
\ No newline at end of file
diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml
deleted file mode 100644 (file)
index d03678f..0000000
+++ /dev/null
@@ -1,334 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!--
-  Copyright © 2015-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/>. -->
-
-<!-- `tools:ignore="MissingTranslation"` allows release APKs to be built if translation strings are missing.  The missing strings will fall back to English. -->
-<resources
-    xmlns:tools="http://schemas.android.com/tools"
-    tools:ignore="MissingTranslation" >
-
-    <!-- Activities. -->
-    <string name="privacy_browser">Privacy Browser</string>
-    <string name="privacy_browser_settings">Privacy Browser Settings</string>
-    <string name="android_asset_path">zh_TW</string>  <!-- For translations, this should be the localization abbreviation.  For example, Spanish is `es`.  This should not be translated unless the Guide and About sections are localized. -->
-
-    <!-- MainWebView. -->
-    <string name="privacy_mode">Privacy Mode</string>
-    <string name="javascript_enabled">JavaScript enabled</string>
-    <string name="javascript_disabled">JavaScript disabled</string>
-    <string name="first_party_cookies_enabled">First-Party Cookies enabled</string>
-    <string name="first_party_cookies_disabled">First-Party Cookies disabled</string>
-    <string name="third_party_cookies_enabled">Third-Party Cookies enabled</string>
-    <string name="third_party_cookies_disabled">Third-Party Cookies disabled</string>
-    <string name="dom_storage_enabled">DOM Storage enabled</string>
-    <string name="dom_storage_disabled">DOM Storage disabled</string>
-    <string name="form_data_enabled">Form Data enabled</string>
-    <string name="form_data_disabled">Form Data disabled</string>
-    <string name="cookies_deleted">Cookies deleted</string>
-    <string name="dom_storage_deleted">DOM Storage deleted</string>
-    <string name="form_data_deleted">Form Data deleted</string>
-    <string name="open_navigation_drawer">Open Navigation Drawer</string>
-    <string name="close_navigation_drawer">Close Navigation Drawer</string>
-    <string name="no_title">No title</string>
-
-    <!-- Save As. -->
-    <string name="save_as">Save As</string>
-    <string name="save_image_as">Save Image As</string>
-    <string name="file_name">File name</string>
-    <string name="image_name">Image name</string>
-    <string name="unknown_size">unknown size</string>
-    <string name="download">Download</string>
-    <string name="cannot_download_file">This file cannot be downloaded because it does not have an HTTP or HTTPS URI.</string>
-    <string name="cannot_download_image">This image cannot be downloaded because it does not have an HTTP or HTTPS URI.</string>
-
-    <!-- Custom App Bar. -->
-    <string name="favorite_icon">Favorite Icon</string>
-    <string name="url_or_search_terms">URL or Search Terms</string>
-
-    <!-- View SSL Certificate. -->
-    <string name="view_ssl_certificate">View SSL Certificate</string>
-    <string name="unencrypted_website">Unencrypted Website</string>
-    <string name="no_ssl_certificate">Communication with this website is not encrypted by an SSL certificate.</string>
-    <string name="ssl_certificate">SSL Certificate</string>
-    <string name="close">Close</string>
-    <string name="issued_to">Issued To</string>
-    <string name="issued_by">Issued By</string>
-    <string name="common_name">Common Name (CN):</string>
-    <string name="organization">Organization (O):</string>
-    <string name="organizational_unit">Organizational Unit (OU):</string>
-    <string name="valid_dates">Valid Dates</string>
-    <string name="start_date">Start Date:</string>
-    <string name="end_date">End Date:</string>
-
-    <!-- SSL Certificate Error. -->
-    <string name="ssl_certificate_error">SSL Certificate Error</string>
-    <string name="proceed">Proceed</string>
-    <string name="future_certificate">The certificate start date is in the future</string>
-    <string name="expired_certificate">The certificate is expired</string>
-    <string name="cn_mismatch">The Common Name does not match the hostname</string>
-    <string name="untrusted">The certificate authority is not trusted</string>
-    <string name="invalid_date">The date on the certificate is invalid</string>
-    <string name="invalid_certificate">The certificate is invalid</string>
-    <string name="url">URL</string>
-    <string name="url_label">URL:</string>
-
-    <!-- MainWebViewActivity Navigation Drawer. -->
-    <string name="navigation_drawer">Navigation Drawer</string>
-    <string name="navigation">Navigation</string>
-    <string name="home">Home</string>
-    <string name="back">Back</string>
-    <string name="forward">Forward</string>
-    <string name="history">History</string>
-        <string name="clear_history">Clear History</string>
-    <string name="bookmarks">Bookmarks</string>
-    <string name="downloads">Downloads</string>
-    <string name="settings">Settings</string>
-    <string name="guide">Guide</string>
-    <string name="about">About</string>
-    <string name="clear_and_exit">Clear and Exit</string>
-
-    <!-- MainWebViewActivity Options Menu. -->
-    <string name="javascript">JavaScript</string>
-    <string name="first_party_cookies">First-Party Cookies</string>
-    <string name="third_party_cookies">Third-Party Cookies</string>
-    <string name="dom_storage">DOM Storage</string>
-    <string name="form_data">Form Data</string>
-    <string name="clear_cookies">Clear Cookies</string>
-    <string name="clear_dom_storage">Clear DOM Storage</string>
-    <string name="clear_form_data">Clear Form Data</string>
-    <string name="font_size">Font Size</string>
-        <string name="twenty_five_percent">25%</string>
-        <string name="fifty_percent">50%</string>
-        <string name="seventy_five_percent">75%</string>
-        <string name="one_hundred_percent">100%</string>
-        <string name="one_hundred_twenty_five_percent">125%</string>
-        <string name="one_hundred_fifty_percent">150%</string>
-        <string name="one_hundred_seventy_five_percent">175%</string>
-        <string name="two_hundred_percent">200%</string>
-    <string name="display_images">Display Images</string>
-    <string name="find_on_page">Find on Page</string>
-    <string name="share">Share</string>
-    <string name="add_to_home_screen">Add to Home Screen</string>
-    <string name="print">Print</string>
-        <string name="privacy_browser_web_page">Privacy Browser Web Page</string>
-    <string name="refresh">Refresh</string>
-
-    <!-- Context Menus. -->
-    <string name="load_url">Load URL</string>
-    <string name="copy_url">Copy URL</string>
-    <string name="email_address">Email Address</string>
-    <string name="copy_email_address">Copy Email Address</string>
-    <string name="write_email">Write Email</string>
-    <string name="view_image">View Image</string>
-    <string name="download_image">Download Image</string>
-
-    <!-- Find on Page. -->
-    <string name="previous">Previous</string>
-    <string name="next">Next</string>
-
-    <!-- Create Home Screen Shortcut Alert Dialog. -->
-    <string name="create_shortcut">Create Shortcut</string>
-    <string name="shortcut_name">Shortcut name</string>
-    <string name="cancel">Cancel</string>
-    <string name="create">Create</string>
-
-    <!-- Bookmarks. -->
-    <string name="database_view">Database View</string>
-    <string name="create_bookmark">Create Bookmark</string>
-    <string name="create_folder">Create Folder</string>
-    <string name="current_bookmark_icon">Current bookmark icon</string>
-    <string name="current_folder_icon">Current folder icon</string>
-    <string name="default_folder_icon">Default folder icon</string>
-    <string name="web_page_favorite_icon">Web page favorite icon</string>
-    <string name="bookmark_name">Bookmark name</string>
-    <string name="folder_name">Folder name</string>
-    <string name="bookmark_url">Bookmark URL</string>
-    <string name="folder_names_must_be_unique">Folder names must be unique</string>
-    <string name="cannot_create_folder">Cannot create the folder because the name is not unique:</string>
-    <string name="cannot_save_folder">Cannot save the folder because the new name is not unique:</string>
-    <string name="cannot_move_bookmarks">Cannot move the selected bookmarks because no new folder was selected.</string>
-    <string name="edit_bookmark">Edit Bookmark</string>
-    <string name="edit_folder">Edit Folder</string>
-    <string name="move_to_folder">Move to Folder</string>
-    <string name="move">Move</string>
-    <string name="save">Save</string>
-
-    <!-- Bookmarks Contextual App Bar. -->
-    <string name="one_selected">1 Selected</string>
-    <string name="selected">Selected</string>  <!--This is a plural adjective.-->
-    <string name="move_up">Move Up</string>
-    <string name="move_down">Move Down</string>
-    <string name="edit">Edit</string>
-    <string name="delete">Delete</string>
-    <string name="select_all">Select All</string>
-    <string name="one_bookmark_deleted">1 Bookmark Deleted</string>
-    <string name="bookmarks_deleted">Bookmarks Deleted</string>
-    <string name="undo">Undo</string>
-
-    <!-- Bookmarks Database View. -->
-    <string name="bookmarks_database_view">Bookmarks Database View</string>
-    <string name="home_folder">Home Folder</string>
-
-    <!-- Domains. -->
-    <string name="domains">Domains</string>
-    <string name="domain_settings">Domain Settings</string>
-    <string name="add_domain">Add Domain</string>
-    <string name="add">Add</string>
-    <string name="domain_name">Domain name</string>
-    <string name="domain_settings_saved">Domain settings saved</string>
-    <string name="domain_deleted">Domain deleted</string>
-    <string name="domain_name_instructions">*. may be prepended to a domain to include all subdomains (eg. *.stoutner.com)</string>
-    <string-array name="display_website_images_array">
-        <item>System default</item>
-        <item>Images enabled</item>
-        <item>Images disabled</item>
-    </string-array>
-
-    <!-- Guide. -->
-    <string name="privacy_browser_guide">Privacy Browser Guide</string>
-    <string name="overview">Overview</string>
-    <string name="local_storage">Local Storage</string>
-    <string name="tracking_ids">Tracking IDs</string>
-    <string name="planned_features">Planned Features</string>
-
-    <!-- Preferences. -->
-    <string name="privacy">Privacy</string>
-        <string name="javascript_preference">Enable JavaScript by default</string>
-        <string name="javascript_preference_summary">JavaScript allows websites to run programs (scripts) on the device.</string>
-        <string name="first_party_cookies_preference">Enable first-party cookies by default</string>
-        <string name="first_party_cookies_preference_summary">Devices with versions of Android older than Lollipop (version 5.0) will also enable third-party cookies with this setting.</string>
-        <string name="third_party_cookies_preference">Enable third-party cookies by default</string>
-        <string name="third_party_cookies_summary">This setting requires Android Lollipop (version 5.0) or higher.  It has no effect if first-party cookies are disabled.</string>
-        <string name="dom_storage_preference">Enable DOM storage by default</string>
-        <string name="dom_storage_preference_summary">JavaScript must be enabled for DOM storage to function.</string>
-        <string name="save_form_data_preference">Enable saving of form data by default</string>
-        <string name="save_form_data_preference_summary">Saved form data can auto-populate fields on websites.</string>
-        <string name="user_agent">User agent</string>
-        <string-array name="user_agent_entries">
-            <item>Privacy Browser 1.0</item>
-            <item>WebView Default</item>
-            <item>Firefox 50 on Android 7.1.1</item>
-            <item>Chrome 55 on Android 7.1.1</item>
-            <item>Safari 10 on iOS 10.2.1</item>
-            <item>Firefox 45 on Linux</item>
-            <item>Chromium 55 on Linux</item>
-            <item>Konqueror 4.14.26 on Linux</item>
-            <item>Firefox 50 on Windows 10</item>
-            <item>Chrome 55 on Windows 10</item>
-            <item>Edge 14 on Windows 10</item>
-            <item>Internet Explorer 11 on Windows 10</item>
-            <item>Safari 10.0.2 on macOS 10.12.2</item>
-            <item>Custom</item>
-        </string-array>
-        <string name="custom_user_agent">Custom user agent</string>
-        <string name="block_ads">Block ads</string>
-        <string name="block_ads_summary">Use the list of ad servers from pgl.yoyo.org to block ads.</string>
-        <string name="incognito_mode">Incognito Mode</string>
-        <string name="incognito_mode_summary">Clear the history and cache after each webpage finishes loading.</string>
-        <string name="do_not_track">Do Not Track</string>
-        <string name="do_not_track_summary">Send the Do Not Track header, which politely suggests that web servers not track this browser.</string>
-    <string name="tor">Tor</string>
-        <string name="proxy_through_orbot">Proxy through Orbot</string>
-        <string name="proxy_through_orbot_summary">Proxy all web traffic through Orbot on localhost:8118.</string>
-        <string name="tor_homepage">Tor homepage</string>
-        <string name="tor_search">Tor search</string>
-        <string-array name="tor_search_entries">
-            <item>DuckDuckGo - JavaScript disabled</item>
-            <item>DuckDuckGo - JavaScript enabled</item>
-            <item>Custom</item>
-        </string-array>
-        <string name="tor_search_custom_url">Tor search custom URL</string>
-    <string name="search">Search</string>
-        <string-array name="search_entries">
-            <item>DuckDuckGo - JavaScript disabled</item>
-            <item>DuckDuckGo - JavaScript enabled</item>
-            <item>StartPage</item>
-            <item>Google</item>
-            <item>Bing</item>
-            <item>Yahoo - JavaScript disabled</item>
-            <item>Yahoo - JavaScript enabled</item>
-            <item>Qwant - JavaScript disabled</item>
-            <item>Qwant - JavaScript enabled</item>
-            <item>Custom</item>
-        </string-array>
-        <string name="search_custom_url">Search custom URL</string>
-        <string name="custom_url">Custom URL</string>
-    <string name="full_screen">Full Screen</string>
-        <string name="full_screen_browsing_mode">Full screen browsing mode</string>
-        <string name="full_screen_browsing_mode_summary">Double-tap to toggle full screen browsing mode.</string>
-        <string name="hide_system_bars">Hide system bars</string>
-        <string name="hide_system_bars_summary">Hide the status and navigation bars in full screen browsing mode. This doesn\'t work well if the keyboard is displayed during full screen browsing mode.</string>
-        <string name="translucent_navigation_bar">Translucent navigation bar</string>
-        <string name="translucent_navigation_bar_summary">Make the navigation bar translucent in full screen browsing mode.</string>
-    <string name="general">General</string>
-        <string name="homepage">Homepage</string>
-        <string name="default_font_size">Default font size</string>
-        <string-array name="default_font_size_entries">
-            <item>25%</item>
-            <item>50%</item>
-            <item>75%</item>
-            <item>100%</item>
-            <item>125%</item>
-            <item>150%</item>
-            <item>175%</item>
-            <item>200%</item>
-        </string-array>
-        <string name="swipe_to_refresh_enabled">Swipe to refresh</string>
-        <string name="swipe_to_refresh_enabled_summary">Some websites don\'t work well if swipe to refresh is enabled.</string>
-        <string name="display_additional_app_bar_icons">Display additional app bar icons</string>
-        <string name="display_additional_app_bar_icons_summary">Display icons for toggling cookies, DOM storage, and form data in the app bar if there is room.</string>
-        <string name="display_webpage_images">Display webpage images</string>
-        <string name="display_webpage_images_summary">Disable to conserve bandwidth.</string>
-
-    <!-- Orbot. -->
-    <string name="orbot_proxy_not_installed">Orbot proxy will not work unless Orbot is installed.</string>
-    <string name="waiting_for_orbot">Waiting for Orbot to connect...</string>
-
-    <!-- About Activity. -->
-    <string name="about_privacy_browser">About Privacy Browser</string>
-    <string name="version">Version</string>
-        <string name="version_code">version code</string>
-        <string name="hardware">Hardware</string>
-            <string name="brand">Brand:</string>
-            <string name="manufacturer">Manufacturer:</string>
-            <string name="model">Model:</string>
-            <string name="device">Device:</string>
-            <string name="bootloader">Bootloader:</string>
-            <string name="radio">Radio:</string>
-        <string name="software">Software</string>
-            <string name="android">Android:</string>
-                <string name="api">API</string>
-            <string name="build">Build:</string>
-            <string name="security_patch">Security Patch:</string>
-            <string name="webkit">WebKit:</string>
-            <string name="chrome">Chrome:</string>
-            <string name="orbot">Orbot:</string>
-        <string name="package_signature">Package Signature</string>
-            <string name="issuer_dn">Issuer DN:</string>
-            <string name="subject_dn">Subject DN:</string>
-            <string name="certificate_version">Certificate Version:</string>
-            <string name="serial_number">Serial Number:</string>
-            <string name="signature_algorithm">Signature Algorithm:</string>
-    <string name="permissions">Permissions</string>
-    <string name="privacy_policy">Privacy Policy</string>
-    <string name="changelog">Changelog</string>
-    <string name="licenses">Licenses</string>
-    <string name="contributors">Contributors</string>
-    <string name="links">Links</string>
-</resources>
index cd1d60d81379f315191e2ac31ff9f80a5f961230..72113ba18f51ebfd9dcc5b851ffa16bd464c2d12 100644 (file)
@@ -18,7 +18,7 @@
   You should have received a copy of the GNU General Public License
   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
 
   You should have received a copy of the GNU General Public License
   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
 
-<!-- These color resources are hardcoded for vector drawables.  Once the minimum API is >= 22 we can remove the hardcoded colors and reference these entries. -->
+<!-- Colors are currently hardcoded in the vector drawables.  Once the minimum API is >= 22 we can remove the hardcoded colors and reference these entries. -->
 <resources>
     <color name="semi_transparent_black">#66000000</color>
 
 <resources>
     <color name="semi_transparent_black">#66000000</color>
 
 
     <color name="blue_gray_500">#FF607D8B</color>
 
 
     <color name="blue_gray_500">#FF607D8B</color>
 
+    <color name="dark_blue_65">#FF1766A6</color>
+    <color name="dark_blue_55">#FF14568C</color>
+    <color name="dark_blue_40">#FF0E3F66</color>
+    <color name="dark_blue_30">#FF002A4D</color>
+    <color name="dark_blue_15">#FF001C33</color>
+
+    <color name="dark_green_15">#FF163317</color>
+
     <color name="gray_100">#FFF5F5F5</color>
     <color name="gray_100">#FFF5F5F5</color>
+    <color name="gray_300">#FFE0E0E0</color>
     <color name="gray_500">#FF9E9E9E</color>
     <color name="gray_500">#FF9E9E9E</color>
+    <color name="gray_900">#FF212121</color>
 
     <color name="green_50">#FFE8F5E9</color>
     <color name="green_100">#FFC8E6C9</color>
 
     <color name="green_50">#FFE8F5E9</color>
     <color name="green_100">#FFC8E6C9</color>
+    <color name="green_200">#FFA5D6A7</color>
 
     <color name="light_green_100">#FFDCEDC8</color>
     <color name="light_green_a700">#FF64DD17</color>
 
     <color name="light_green_100">#FFDCEDC8</color>
     <color name="light_green_a700">#FF64DD17</color>
index eb7d0ab947f736840f012faec846c84c43fe09a5..6b38aed87c9778c2bcc7b7284177dade1f89a6a4 100644 (file)
         <string name="swipe_to_refresh_enabled_summary">Some websites don’t work well if swipe to refresh is enabled.</string>
         <string name="display_additional_app_bar_icons">Display additional app bar icons</string>
         <string name="display_additional_app_bar_icons_summary">Display icons for toggling cookies, DOM storage, and form data in the app bar if there is room.</string>
         <string name="swipe_to_refresh_enabled_summary">Some websites don’t work well if swipe to refresh is enabled.</string>
         <string name="display_additional_app_bar_icons">Display additional app bar icons</string>
         <string name="display_additional_app_bar_icons_summary">Display icons for toggling cookies, DOM storage, and form data in the app bar if there is room.</string>
+        <string name="dark_theme">Dark theme</string>
+        <string name="dark_theme_summary">Privacy Browser must be restarted for the new theme to take effect.</string>
         <string name="display_webpage_images">Display webpage images</string>
         <string name="display_webpage_images_summary">Disable to conserve bandwidth.</string>
 
         <string name="display_webpage_images">Display webpage images</string>
         <string name="display_webpage_images_summary">Disable to conserve bandwidth.</string>
 
index 7a2260388dd97c226ba7f107420fd96bb15faa9a..5395eee0a1d8c1dd497cdc5884aac41d3a847a27 100644 (file)
   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
 
 <resources>
   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
 
 <resources>
+    <!-- Light theme styles. -->
+
     <!-- `android:windowTranslucentStatus` makes the system status bar translucent.
     <!-- `android:windowTranslucentStatus` makes the system status bar translucent.
-        When it is specified the root layout should include android:fitsSystemWindows="true". -->
-    <style name="PrivacyBrowser" parent="Theme.AppCompat.Light.NoActionBar">
+        When it is specified the root layout should include `android:fitsSystemWindows="true"`. -->
+    <style name="PrivacyBrowserLight" parent="Theme.AppCompat.Light.NoActionBar" >
         <item name="android:windowTranslucentStatus">true</item>
         <item name="colorAccent">@color/blue_700</item>
         <item name="android:textColorHighlight">@color/blue_200</item>
         <item name="android:windowTranslucentStatus">true</item>
         <item name="colorAccent">@color/blue_700</item>
         <item name="android:textColorHighlight">@color/blue_200</item>
 
     <!-- `colorPrimaryDark` goes behind the status bar, which is then darkened by the overlay.
         `windowActionModeOverlay` makes the contextual app bar cover the support app bar. -->
 
     <!-- `colorPrimaryDark` goes behind the status bar, which is then darkened by the overlay.
         `windowActionModeOverlay` makes the contextual app bar cover the support app bar. -->
-    <style name="PrivacyBrowser.SecondaryActivity">
+    <style name="PrivacyBrowserLight.SecondaryActivity" >
         <item name="colorPrimaryDark">@color/blue_700</item>
         <item name="android:textColorHighlight">@color/blue_200</item>
         <item name="windowActionModeOverlay">true</item>
         <item name="android:actionModeBackground">@color/blue_700</item>
         <item name="colorPrimaryDark">@color/blue_700</item>
         <item name="android:textColorHighlight">@color/blue_200</item>
         <item name="windowActionModeOverlay">true</item>
         <item name="android:actionModeBackground">@color/blue_700</item>
-        <item name="actionBarPopupTheme">@style/LightPopupOverlay</item>
+        <item name="actionBarPopupTheme">@style/PrivacyBrowserPopupOverlayLight</item>
         <item name="android:spinnerItemStyle">@style/spinnerItemStyle</item>
         <item name="android:spinnerDropDownItemStyle">@style/spinnerDropDownItemStyle</item>
     </style>
 
     <!-- `colorPrimaryDark` is the color of the status bar. -->
         <item name="android:spinnerItemStyle">@style/spinnerItemStyle</item>
         <item name="android:spinnerDropDownItemStyle">@style/spinnerDropDownItemStyle</item>
     </style>
 
     <!-- `colorPrimaryDark` is the color of the status bar. -->
-    <style name="Settings" parent="Theme.AppCompat.Light.DarkActionBar">
+    <style name="Settings" parent="Theme.AppCompat.Light.DarkActionBar" >
         <item name="colorPrimary">@color/blue_700</item>
         <item name="colorPrimaryDark">@color/blue_900</item>
         <item name="colorAccent">@color/blue_700</item>
         <item name="colorPrimary">@color/blue_700</item>
         <item name="colorPrimaryDark">@color/blue_900</item>
         <item name="colorAccent">@color/blue_700</item>
     <!-- `ThemeOverlay.AppCompat.Dark.ActionBar` makes the text and the icons in the AppBar white. -->
     <style name="DarkAppBar" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
 
     <!-- `ThemeOverlay.AppCompat.Dark.ActionBar` makes the text and the icons in the AppBar white. -->
     <style name="DarkAppBar" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
 
-    <style name="AppBarOverlay" parent="ThemeOverlay.AppCompat.ActionBar" />
+    <!-- `ThemeOverlay.AppCompat.ActionBar` makes the hamburger icons dark. -->
+    <style name="PrivacyBrowserAppBarOverlayLight" parent="ThemeOverlay.AppCompat.ActionBar" />
 
 
-    <!-- `ThemeOverlay.AppCompat.Light` makes the popups have a white background with black text. -->
-    <style name="LightPopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
+    <!-- `ThemeOverlay.AppCompat.Light` makes the popups have a light background with dark text. -->
+    <style name="PrivacyBrowserPopupOverlayLight" parent="ThemeOverlay.AppCompat.Light" />
 
     <style name="LightAlertDialog" parent="Theme.AppCompat.Light.Dialog.Alert" >
         <item name="colorAccent">@color/blue_700</item>
     </style>
 
 
     <style name="LightAlertDialog" parent="Theme.AppCompat.Light.Dialog.Alert" >
         <item name="colorAccent">@color/blue_700</item>
     </style>
 
+    <!-- This `Spinner` style is needed to fix a layout bug in Huawei devices running Android 7.0. -->
     <style name="spinnerItemStyle" >
         <item name="android:paddingStart">8dp</item>
         <item name="android:textColor">@color/black</item>
         <item name="android:textSize">18sp</item>
     </style>
 
     <style name="spinnerItemStyle" >
         <item name="android:paddingStart">8dp</item>
         <item name="android:textColor">@color/black</item>
         <item name="android:textSize">18sp</item>
     </style>
 
+    <!-- This `Spinner` style is needed to fix a layout bug in Huawei devices running Android 7.0. -->
     <style name="spinnerDropDownItemStyle" >
         <item name="android:paddingStart">16dp</item>
         <item name="android:paddingEnd">16dp</item>
     <style name="spinnerDropDownItemStyle" >
         <item name="android:paddingStart">16dp</item>
         <item name="android:paddingEnd">16dp</item>
         <item name="android:textColor">@color/black</item>
         <item name="android:textSize">18sp</item>
     </style>
         <item name="android:textColor">@color/black</item>
         <item name="android:textSize">18sp</item>
     </style>
+
+
+    <!-- Dark theme styles. -->
+
+    <!-- `android:windowTranslucentStatus` makes the system status bar translucent.
+        When it is specified the root layout should include `android:fitsSystemWindows="true"`. -->
+    <style name="PrivacyBrowserDark" parent="Theme.AppCompat.NoActionBar" >
+        <item name="android:windowTranslucentStatus">true</item>
+        <item name="android:textColorPrimary">@color/dark_primary_text_color_selector</item>
+        <item name="colorAccent">@color/blue_900</item>
+        <item name="android:textColorHighlight">@color/blue_800</item>
+    </style>
+
+    <!-- `ThemeOverlay.AppCompat.Dark.ActionBar` makes the hamburger icons light. -->
+    <!-- <style name="PrivacyBrowserAppBarOverlayDark" parent="ThemeOverlay.AppCompat.Dark.ActionBar" >
+        <item name="android:background">@color/gray_900</item>
+    </style> -->
+
+    <!-- `ThemeOverlay.AppCompat.Dark` makes the popups have a dark background with light text. -->
+    <!-- <style name="PrivacyBrowserPopupOverlayDark" parent="ThemeOverlay.AppCompat.Dark" /> -->
+
+    <!-- -->
+    <!--<style name="PrivacyBrowserToolbarDark" parent="Widget.AppCompat.Toolbar" >
+        <item name="android:background">@color/gray_900</item>
+    </style> -->
 </resources>
\ No newline at end of file
 </resources>
\ No newline at end of file
index 5c188cf49b744c695b58ddab4d3e027ef44092e0..d7e096b1b890788e84aa1ceba2c9909203229bed 100644 (file)
             android:summary="@string/display_additional_app_bar_icons_summary"
             android:defaultValue="false" />
 
             android:summary="@string/display_additional_app_bar_icons_summary"
             android:defaultValue="false" />
 
+        <SwitchPreference
+            android:key="dark_theme"
+            android:title="@string/dark_theme"
+            android:summary="@string/dark_theme_summary"
+            android:defaultValue="false" />
+
         <SwitchPreference
             android:key="display_webpage_images"
             android:title="@string/display_webpage_images"
         <SwitchPreference
             android:key="display_webpage_images"
             android:title="@string/display_webpage_images"
index ea98e44f3823bd201d613e3ffd3c20e8d3ac2871..596601301bfee31750913dd729e2956e15d396f8 100644 (file)
@@ -5,7 +5,7 @@ buildscript {
         jcenter()
     }
     dependencies {
         jcenter()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:2.3.2'
+        classpath 'com.android.tools.build:gradle:2.3.3'
 
         // 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