Add an option to use a bottom app bar. https://redmine.stoutner.com/issues/749
authorSoren Stoutner <soren@stoutner.com>
Tue, 14 Sep 2021 02:18:23 +0000 (19:18 -0700)
committerSoren Stoutner <soren@stoutner.com>
Tue, 14 Sep 2021 02:18:23 +0000 (19:18 -0700)
75 files changed:
app/build.gradle
app/src/main/AndroidManifest.xml
app/src/main/assets/en/licenses.html
app/src/main/assets/es/licenses.html
app/src/main/assets/fr/licenses.html
app/src/main/assets/images/call_to_action_rounded.svg [new file with mode: 0644]
app/src/main/assets/images/settings_rounded.svg [new file with mode: 0644]
app/src/main/assets/it/changelog.html [new file with mode: 0644]
app/src/main/assets/it/contributors.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_1xrtt.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_cdma.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_edge.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_ehrpd.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_evdo_0.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_evdo_a.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_evdo_b.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_gprs.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_gsm.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_hsdpa.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_hspa.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_hspap.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_hsupa.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_iden.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_iwlan.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_lte.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_nr.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_td_scdma.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_umts.html [new file with mode: 0644]
app/src/main/assets/it/explanations/network_unknown.html [new file with mode: 0644]
app/src/main/assets/it/explanations/override_network_lte_advanced_pro.html [new file with mode: 0644]
app/src/main/assets/it/explanations/override_network_lte_ca.html [new file with mode: 0644]
app/src/main/assets/it/explanations/override_network_none.html [new file with mode: 0644]
app/src/main/assets/it/explanations/override_network_nr_nsa.html [new file with mode: 0644]
app/src/main/assets/it/explanations/override_network_nr_nsa_mmwave.html [new file with mode: 0644]
app/src/main/assets/it/explanations/stingrays.html [new file with mode: 0644]
app/src/main/assets/it/licenses.html [new file with mode: 0644]
app/src/main/assets/it/permissions.html [new file with mode: 0644]
app/src/main/assets/it/privacy_policy.html [new file with mode: 0644]
app/src/main/java/com/stoutner/privacycell/activities/PrivacyCell.kt [deleted file]
app/src/main/java/com/stoutner/privacycell/activities/PrivacyCellActivity.kt [new file with mode: 0644]
app/src/main/java/com/stoutner/privacycell/activities/SettingsActivity.kt [new file with mode: 0644]
app/src/main/java/com/stoutner/privacycell/fragments/SettingsFragment.kt [new file with mode: 0644]
app/src/main/res/drawable/bottom_app_bar_disabled.xml [new file with mode: 0644]
app/src/main/res/drawable/bottom_app_bar_enabled.xml [new file with mode: 0644]
app/src/main/res/drawable/bug_tracker.xml
app/src/main/res/drawable/changelog.xml
app/src/main/res/drawable/contributors.xml
app/src/main/res/drawable/donations.xml
app/src/main/res/drawable/forum.xml
app/src/main/res/drawable/licenses.xml
app/src/main/res/drawable/news.xml
app/src/main/res/drawable/permissions.xml
app/src/main/res/drawable/phone_permission.xml
app/src/main/res/drawable/privacy_policy.xml
app/src/main/res/drawable/roadmap.xml
app/src/main/res/drawable/settings.xml [new file with mode: 0644]
app/src/main/res/layout/privacy_cell_bottom_appbar.xml [new file with mode: 0644]
app/src/main/res/layout/privacy_cell_drawerlayout.xml [deleted file]
app/src/main/res/layout/privacy_cell_top_appbar.xml [new file with mode: 0644]
app/src/main/res/layout/settings_bottom_appbar.xml [new file with mode: 0644]
app/src/main/res/layout/settings_top_appbar.xml [new file with mode: 0644]
app/src/main/res/menu/navigation_menu_bottom_appbar.xml [new file with mode: 0644]
app/src/main/res/menu/navigation_menu_top_appbar.xml
app/src/main/res/values-es/strings.xml
app/src/main/res/values-fr/strings.xml
app/src/main/res/values-it/strings.xml
app/src/main/res/values-night/colors.xml
app/src/main/res/values-night/themes.xml
app/src/main/res/values-ru/strings.xml [new file with mode: 0644]
app/src/main/res/values/colors.xml
app/src/main/res/values/strings.xml
app/src/main/res/values/themes.xml
app/src/main/res/xml/preferences.xml [new file with mode: 0644]
build.gradle
fastlane/metadata/android/es-ES/images/phoneScreenshots/03-Stingrays.png

index 33072eda4e55c190bb46d0ea9185e56fae63e698..51116f0b02b221a8f0e912c659c05ddb56964f59 100644 (file)
@@ -49,8 +49,9 @@ android {
 
 dependencies {
     // Include the following AndroidX libraries.
-    implementation 'androidx.core:core-ktx:1.6.0'
     implementation 'androidx.appcompat:appcompat:1.3.1'
+    implementation 'androidx.core:core-ktx:1.6.0'
+    implementation 'androidx.preference:preference-ktx:1.1.1'
     implementation 'androidx.webkit:webkit:1.4.0'
 
     // Include the Kotlin standard libraries.  This should be the same version number listed in project build.gradle.
index ab618bbf089a6952ca61a164b415aee2428b4a9f..a510530d9d551cd8b545baa2ec77d5a1ea9274ec 100644 (file)
         android:supportsRtl="true"
         android:theme="@style/Theme.PrivacyCell" >
 
-        <!-- The label uses the short name so that it isn't truncated under the icon in the launcher on most phones.
+        <!-- PrivacyCellActivity.  The label uses the short name so that it isn't truncated under the icon in the launcher on most phones.
             `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 Cell activity if available instead of launching a new one. -->
         <activity
-            android:name=".activities.PrivacyCell"
+            android:name=".activities.PrivacyCellActivity"
             android:label="@string/cell"
             android:launchMode="singleTask"
             android:screenOrientation="fullUser"
                 <category android:name="android.intent.category.LAUNCHER" />
             </intent-filter>
         </activity>
+
+        <!-- Settings Activity.  The `parentActivityName` is used when restarting Privacy Cell.-->
+        <activity
+            android:name=".activities.SettingsActivity"
+            android:label="@string/settings"
+            android:screenOrientation="fullUser"
+            android:parentActivityName=".activities.PrivacyCellActivity" />
     </application>
 </manifest>
\ No newline at end of file
index 6ad712a3c66dc6536eb3f2b993d9a59fb1bf7010..afd34e5ff44c4ccfe75e6f84b003048fadc0ef77 100644 (file)
@@ -53,6 +53,7 @@
             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><svg class="icon"><use href="../images/bug_report_rounded.svg#icon"/></svg> bug_report_rounded.</p>
+        <p><svg class="icon"><use href="../images/call_to_action_rounded.svg#icon"/></svg> call_to_action_rounded.</p>
         <p><svg class="icon"><use href="../images/chrome_reader_mode_rounded.svg#icon"/></svg> chrome_reader_mode_rounded.</p>
         <p><svg class="icon"><use href="../images/fact_check_outlined.svg#icon"/></svg> fact_checked_outlined.</p>
         <p><svg class="icon"><use href="../images/format_list_bulleted_rounded.svg#icon"/></svg> format_list_bulleted_rounded.</p>
@@ -62,6 +63,7 @@
         <p><svg class="icon"><use href="../images/payments_rounded.svg#icon"/></svg> payments_rounded.</p>
         <p><svg class="icon"><use href="../images/phone_android_outlined.svg#icon"/></svg> phone_android_outlined.</p>
         <p><svg class="icon"><use href="../images/policy_filled.svg#icon"/></svg> policy_filled.</p>
+        <p><svg class="icon"><use href="../images/settings_rounded.svg#icon"/></svg> settings_rounded.</p>
         <p><svg class="icon"><use href="../images/text_snippet_outlined.svg#icon"/></svg> text_snippet_outlined.</p>
 
         <hr/>
index ce2f26f12bb3e2503b03f59701c4e787bac59e7c..468726190f80108c809d21d1e8c3bad10afe4056 100644 (file)
@@ -56,6 +56,7 @@
             No se han modificado, salvo la información sobre el diseño, como el color y el tamaño. Algunos de ellos han sido renombrados para que coincidan con su uso en el código.
             Los iconos y nombres originales se muestran a continuación.</p>
         <p><svg class="icon"><use href="../images/bug_report_rounded.svg#icon"/></svg> bug_report_rounded.</p>
+        <p><svg class="icon"><use href="../images/call_to_action_rounded.svg#icon"/></svg> call_to_action_rounded.</p>
         <p><svg class="icon"><use href="../images/chrome_reader_mode_rounded.svg#icon"/></svg> chrome_reader_mode_rounded.</p>
         <p><svg class="icon"><use href="../images/fact_check_outlined.svg#icon"/></svg> fact_checked_outlined.</p>
         <p><svg class="icon"><use href="../images/format_list_bulleted_rounded.svg#icon"/></svg> format_list_bulleted_rounded.</p>
@@ -65,6 +66,7 @@
         <p><svg class="icon"><use href="../images/payments_rounded.svg#icon"/></svg> payments_rounded.</p>
         <p><svg class="icon"><use href="../images/phone_android_outlined.svg#icon"/></svg> phone_android_outlined.</p>
         <p><svg class="icon"><use href="../images/policy_filled.svg#icon"/></svg> policy_filled.</p>
+        <p><svg class="icon"><use href="../images/settings_rounded.svg#icon"/></svg> settings_rounded.</p>
         <p><svg class="icon"><use href="../images/text_snippet_outlined.svg#icon"/></svg> text_snippet_outlined.</p>
 
         <hr/>
index c1ddf47c3ac036ec2a6ca5a89b8343c5f4f7168f..efb2483b45ea222a261071501576b1c2845a4737 100644 (file)
@@ -55,6 +55,7 @@
             qui sont publiées sous la <a href ="https://www.apache.org/licenses/LICENSE-2.0">Licence Apache 2.0</a>.
             Elles sont inchangés, à l'exception des informations de mise en page comme la couleur et la taille. Certaines d'entre elles ont été renommées pour correspondre à leur utilisation dans le code. Les icônes et les noms originaux sont présentés ci-dessous.</p>
         <p><svg class="icon"><use href="../images/bug_report_rounded.svg#icon"/></svg> bug_report_rounded.</p>
+        <p><svg class="icon"><use href="../images/call_to_action_rounded.svg#icon"/></svg> call_to_action_rounded.</p>
         <p><svg class="icon"><use href="../images/chrome_reader_mode_rounded.svg#icon"/></svg> chrome_reader_mode_rounded.</p>
         <p><svg class="icon"><use href="../images/fact_check_outlined.svg#icon"/></svg> fact_checked_outlined.</p>
         <p><svg class="icon"><use href="../images/format_list_bulleted_rounded.svg#icon"/></svg> format_list_bulleted_rounded.</p>
@@ -64,6 +65,7 @@
         <p><svg class="icon"><use href="../images/payments_rounded.svg#icon"/></svg> payments_rounded.</p>
         <p><svg class="icon"><use href="../images/phone_android_outlined.svg#icon"/></svg> phone_android_outlined.</p>
         <p><svg class="icon"><use href="../images/policy_filled.svg#icon"/></svg> policy_filled.</p>
+        <p><svg class="icon"><use href="../images/settings_rounded.svg#icon"/></svg> settings_rounded.</p>
         <p><svg class="icon"><use href="../images/text_snippet_outlined.svg#icon"/></svg> text_snippet_outlined.</p>
 
         <hr/>
diff --git a/app/src/main/assets/images/call_to_action_rounded.svg b/app/src/main/assets/images/call_to_action_rounded.svg
new file mode 100644 (file)
index 0000000..e81a073
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+
+<!--
+  This file is a modified version of `call_to_action_rounded`, which is part of the Android Material icon set and is released under the Apache License 2.0.
+
+  Changes copyright © 2021 Soren Stoutner <soren@stoutner.com>.  The resulting file is released under the GPLv3+ license.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<svg
+  xmlns="http://www.w3.org/2000/svg"
+  viewBox="0 0 24 24"
+  id="icon" >
+
+  <path
+    d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 16H4c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1z" />
+</svg>
\ No newline at end of file
diff --git a/app/src/main/assets/images/settings_rounded.svg b/app/src/main/assets/images/settings_rounded.svg
new file mode 100644 (file)
index 0000000..85b72e6
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+
+<!--
+  This file is a modified version of `settings_rounded`, which is part of the Android Material icon set and is released under the Apache License 2.0.
+
+  Changes copyright © 2021 Soren Stoutner <soren@stoutner.com>.  The resulting file is released under the GPLv3+ license.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<svg
+  xmlns="http://www.w3.org/2000/svg"
+  viewBox="0 0 24 24"
+  id="icon" >
+
+  <path
+    d="M19.5,12c0-0.23-0.01-0.45-0.03-0.68l1.86-1.41c0.4-0.3,0.51-0.86,0.26-1.3l-1.87-3.23c-0.25-0.44-0.79-0.62-1.25-0.42 l-2.15,0.91c-0.37-0.26-0.76-0.49-1.17-0.68l-0.29-2.31C14.8,2.38,14.37,2,13.87,2h-3.73C9.63,2,9.2,2.38,9.14,2.88L8.85,5.19 c-0.41,0.19-0.8,0.42-1.17,0.68L5.53,4.96c-0.46-0.2-1-0.02-1.25,0.42L2.41,8.62c-0.25,0.44-0.14,0.99,0.26,1.3l1.86,1.41 C4.51,11.55,4.5,11.77,4.5,12s0.01,0.45,0.03,0.68l-1.86,1.41c-0.4,0.3-0.51,0.86-0.26,1.3l1.87,3.23c0.25,0.44,0.79,0.62,1.25,0.42 l2.15-0.91c0.37,0.26,0.76,0.49,1.17,0.68l0.29,2.31C9.2,21.62,9.63,22,10.13,22h3.73c0.5,0,0.93-0.38,0.99-0.88l0.29-2.31 c0.41-0.19,0.8-0.42,1.17-0.68l2.15,0.91c0.46,0.2,1,0.02,1.25-0.42l1.87-3.23c0.25-0.44,0.14-0.99-0.26-1.3l-1.86-1.41 C19.49,12.45,19.5,12.23,19.5,12z M12.04,15.5c-1.93,0-3.5-1.57-3.5-3.5s1.57-3.5,3.5-3.5s3.5,1.57,3.5,3.5S13.97,15.5,12.04,15.5z" />
+</svg>
\ No newline at end of file
diff --git a/app/src/main/assets/it/changelog.html b/app/src/main/assets/it/changelog.html
new file mode 100644 (file)
index 0000000..a60787c
--- /dev/null
@@ -0,0 +1,45 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <h3><a href="https://www.stoutner.com/privacy-cell-1-1/">1.1</a> (versione codice 2)</h3>
+        <p><a href="https://gitweb.stoutner.com/?p=PrivacyCell.git;a=commitdiff;h=62586b5aaccbfa0fa265040513f3984264bd0379">30 Agosto 2021</a> - minima API 30, target API 30.</p>
+        <ul>
+            <li>Aggiunte <a href="https://redmine.stoutner.com/issues/756">le schede con le informazioni</a> sui tipi di rete.</li>
+            <li>Traduzione parziale in Spagnolo fornita da Jose A. León.</li>
+        </ul>
+
+        <h3><a href="https://www.stoutner.com/privacy-cell-1-0/">1.0</a> (versione codice 1)</h3>
+        <p><a href="https://gitweb.stoutner.com/?p=PrivacyCell.git;a=commitdiff;h=13c6fd95ce6986c052fed7918576b77619dc9c2a">25 Agosto 2021</a> - minimum API 30, target API 30.</p>
+        <ul>
+            <li>Primo rilascio.</li>
+        </ul>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/contributors.html b/app/src/main/assets/it/contributors.html
new file mode 100644 (file)
index 0000000..620bde7
--- /dev/null
@@ -0,0 +1,43 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <h3>Sviluppatore principale</h3>
+        <p>Privacy Cell è sviluppato principalmente da <a href="mailto:soren@stoutner.com">Soren Stoutner</a>.</p>
+
+        <h3>Traduttori</h3>
+        Francesco Buratti: Italiano<br/>
+        <a href="mailto:kevinliste@framalistes.org">Kévin L.</a>: Francese<br/>
+        Jose A. León: Spagnolo
+
+        <br/>
+        <p>Si accettano contributi per lo sviluppo di <a href="https://www.stoutner.com/privacy-cell/contributors/">codice e traduzioni</a>.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_1xrtt.html b/app/src/main/assets/it/explanations/network_1xrtt.html
new file mode 100644 (file)
index 0000000..16f447a
--- /dev/null
@@ -0,0 +1,37 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/CDMA2000#1X">1 times Radio Transmission Technology</a> (1xRTT) is the first version of the
+            <a href="https://en.wikipedia.org/wiki/CDMA2000">Code-Division Multiple Access 2000</a> (CDMA2000) standard, which is the 3G update of the older 2G
+            <a href="https://en.wikipedia.org/wiki/CdmaOne">Code-Division Multiple Access One</a> (CDMAOne).
+            It is the competitor to <a href="https://en.wikipedia.org/wiki/UMTS">Universal Mobile Telecommunications System</a> (UMTS).
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_cdma.html b/app/src/main/assets/it/explanations/network_cdma.html
new file mode 100644 (file)
index 0000000..421c221
--- /dev/null
@@ -0,0 +1,35 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/CdmaOne">Code-Division Multiple Access</a> (CDMA, also known as CDMAOne) is a 2G standard than can be considered a direct competitor to
+            <a href="https://en.wikipedia.org/wiki/GSM">Global System for Mobile Communications</a> (GSM).</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_edge.html b/app/src/main/assets/it/explanations/network_edge.html
new file mode 100644 (file)
index 0000000..312a3e6
--- /dev/null
@@ -0,0 +1,37 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+    <p><a href="https://en.wikipedia.org/wiki/Enhanced_Data_rates_for_GSM_Evolution">Enhanced Data rates for GSM Evolution</a> (EDGE)
+        is a 2.5G/3G technology which can be thought of as the next step up from <a href="https://en.wikipedia.org/wiki/General_Packet_Radio_Service">General Packet Radio Service</a> (GPRS),
+        which is the first evolution of the 2G <a href="https://en.wikipedia.org/wiki/GSM">Global System for Mobile Communications</a> (GSM),
+        which is the competitor to <a href="https://en.wikipedia.org/wiki/CdmaOne">Code-Division Multiple Access</a> (CDMA, also known as CDMAOne).</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_ehrpd.html b/app/src/main/assets/it/explanations/network_ehrpd.html
new file mode 100644 (file)
index 0000000..0f1c6d6
--- /dev/null
@@ -0,0 +1,36 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://ieeexplore.ieee.org/document/6618535">Enhanced High-Rate Packet Data</a> (eHRPD) is a 3.5G/4G protocol designed to ease the transition in mixed networks to
+            4G <a href="https://en.wikipedia.org/wiki/LTE_(telecommunication)">Long-Term Evolution</a> (LTE),
+            particularly those coming from <a href="https://www.iotevolutionworld.com/topics/mobile-communications/articles/37366-evolution-options-from-cdma-lte-benefits-ehrpd.htm">CDMA2000</a>.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_evdo_0.html b/app/src/main/assets/it/explanations/network_evdo_0.html
new file mode 100644 (file)
index 0000000..1a9dd00
--- /dev/null
@@ -0,0 +1,36 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/Evolution-Data_Optimized#EV-DO_Rel._0_(TIA-856_Release_0)">Evolution-Data Optimized release 0</a> (EVDO_0) is a 3.5G evolution of the 3G
+            <a href="https://en.wikipedia.org/wiki/CDMA2000">Code-Division Multiple Access 2000</a> (CDMA2000) standard.
+            It is a competitor to the <a href="https://en.wikipedia.org/wiki/High_Speed_Packet_Access">High Speed Packet Access</a> (HSPA) protocol.
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_evdo_a.html b/app/src/main/assets/it/explanations/network_evdo_a.html
new file mode 100644 (file)
index 0000000..78e9acd
--- /dev/null
@@ -0,0 +1,36 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/Evolution-Data_Optimized#EV-DO_Rev._A_(TIA-856_Revision_A)">Evolution-Data Optimized release A</a> (EVDO_A) is the second release of the EVDO standard,
+            which is a 3.5G evolution of the 3G <a href="https://en.wikipedia.org/wiki/CDMA2000">Code-Division Multiple Access 2000</a> (CDMA2000) standard.
+            It is a competitor to the <a href="https://en.wikipedia.org/wiki/High_Speed_Packet_Access">High Speed Packet Access</a> (HSPA) protocol.
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_evdo_b.html b/app/src/main/assets/it/explanations/network_evdo_b.html
new file mode 100644 (file)
index 0000000..1bee7dc
--- /dev/null
@@ -0,0 +1,36 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/Evolution-Data_Optimized#EV-DO_Rev._B_(TIA-856_Revision_B)">Evolution-Data Optimized release B</a> (EVDO_B) is the third release of the EVDO standard,
+            which is a 3.5G evolution of the 3G <a href="https://en.wikipedia.org/wiki/CDMA2000">Code-Division Multiple Access 2000</a> (CDMA2000) standard.
+            It is a competitor to the <a href="https://en.wikipedia.org/wiki/Evolved_High_Speed_Packet_Access">High Speed Packet Access Plus</a> (HSPAP) protocol.
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_gprs.html b/app/src/main/assets/it/explanations/network_gprs.html
new file mode 100644 (file)
index 0000000..2a525f6
--- /dev/null
@@ -0,0 +1,37 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/General_Packet_Radio_Service">General Packet Radio Service</a> (GPRS) is a 2.5G/3G packet-switched protocol
+            (meaning that information is split up into multiple packets similar to <a href="https://en.wikipedia.org/wiki/Internet_protocol_suite">TCP/IP</a> on the general internet).
+            It is the evolution of the 2G <a href="https://en.wikipedia.org/wiki/GSM">Global System for Mobile Communications</a> (GSM),
+            which is the competitor to <a href="https://en.wikipedia.org/wiki/CdmaOne">Code-Division Multiple Access</a> (CDMA, also known as CDMAOne).</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_gsm.html b/app/src/main/assets/it/explanations/network_gsm.html
new file mode 100644 (file)
index 0000000..2d0e2e8
--- /dev/null
@@ -0,0 +1,36 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/GSM">Global System for Mobile Communications</a> (GSM) is a 2G standard.
+            It is the competitor to <a href="https://en.wikipedia.org/wiki/CdmaOne">Code-Division Multiple Access</a> (CDMA, also known as CDMAOne).
+            GSM eventually evolved into the 4G <a href="https://en.wikipedia.org/wiki/LTE_(telecommunication)">Long-Term Evolution</a> (LTE), which was also adopted by CDMA networks.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_hsdpa.html b/app/src/main/assets/it/explanations/network_hsdpa.html
new file mode 100644 (file)
index 0000000..fae5394
--- /dev/null
@@ -0,0 +1,37 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/High_Speed_Packet_Access#High_Speed_Downlink_Packet_Access_(HSDPA)">High Speed Downlink Packet Access</a> (HSDPA)
+            is a 3.5G protocol that makes up one portion of the <a href="https://en.wikipedia.org/wiki/High_Speed_Packet_Access">High Speed Packet Access</a> (HSPA) update to the 3G
+            <a href="https://en.wikipedia.org/wiki/UMTS">Universal Mobile Telecommunications System</a> (UMTS).
+            It is a competitor to the 3.5G <a href="https://en.wikipedia.org/wiki/Evolution-Data_Optimized">Evolution-Data Optimized</a> (EVDO) protocols.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_hspa.html b/app/src/main/assets/it/explanations/network_hspa.html
new file mode 100644 (file)
index 0000000..19f8abd
--- /dev/null
@@ -0,0 +1,36 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/High_Speed_Packet_Access">High Speed Packet Access</a> (HSPA) is a 3.5G update to the 3G
+            <a href="https://en.wikipedia.org/wiki/UMTS">Universal Mobile Telecommunications System</a> (UMTS).
+            It is a competitor to the 3.5G <a href="https://en.wikipedia.org/wiki/Evolution-Data_Optimized">Evolution-Data Optimized</a> (EVDO) protocols.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_hspap.html b/app/src/main/assets/it/explanations/network_hspap.html
new file mode 100644 (file)
index 0000000..a38afda
--- /dev/null
@@ -0,0 +1,37 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/Evolved_High_Speed_Packet_Access">High Speed Packet Access Plus</a> (HSPAP) is a boost to the 3.5G
+            <a href="https://en.wikipedia.org/wiki/High_Speed_Packet_Access">High Speed Packet Access</a> (HSPA) update to the 3G
+            <a href="https://en.wikipedia.org/wiki/UMTS">Universal Mobile Telecommunications System</a> (UMTS).
+            It is a competitor to the 3.5G <a href="https://en.wikipedia.org/wiki/Evolution-Data_Optimized">Evolution-Data Optimized</a> (EVDO) protocols.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_hsupa.html b/app/src/main/assets/it/explanations/network_hsupa.html
new file mode 100644 (file)
index 0000000..846611c
--- /dev/null
@@ -0,0 +1,37 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/High_Speed_Packet_Access#High_Speed_Uplink_Packet_Access_(HSUPA)">High Speed Uplink Packet Access</a> (HSUPA)
+            is a 3.5G protocol that makes up one portion of the <a href="https://en.wikipedia.org/wiki/High_Speed_Packet_Access">High Speed Packet Access</a> (HSPA) update to the 3G
+            <a href="https://en.wikipedia.org/wiki/UMTS">Universal Mobile Telecommunications System</a> (UMTS).
+            It is a competitor to the 3.5G <a href="https://en.wikipedia.org/wiki/Evolution-Data_Optimized">Evolution-Data Optimized</a> (EVDO) protocols.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_iden.html b/app/src/main/assets/it/explanations/network_iden.html
new file mode 100644 (file)
index 0000000..ee5715e
--- /dev/null
@@ -0,0 +1,35 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/IDEN">Integrated Digital Enhanced Network</a> (iDEN) was a 2G protocol developed to work around some of the limitations of the 2G
+            <a href="https://en.wikipedia.org/wiki/GSM">Global System for Mobile Communications</a> (GSM).</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_iwlan.html b/app/src/main/assets/it/explanations/network_iwlan.html
new file mode 100644 (file)
index 0000000..d8cbafc
--- /dev/null
@@ -0,0 +1,35 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/Mobile_data_offloading#Cellular_and_Wi-Fi_network_interworking">Interworking Wireless LAN</a> (IWLAN)
+            is a fancy name for using an <a href="https://en.wikipedia.org/wiki/IEEE_802.11">802.11 Wi-Fi network</a> to route cell phone data.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_lte.html b/app/src/main/assets/it/explanations/network_lte.html
new file mode 100644 (file)
index 0000000..33e779c
--- /dev/null
@@ -0,0 +1,40 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/LTE_(telecommunication)">Long-Term Evolution</a> (LTE) is the 4G evolution of the 3G
+            <a href="https://en.wikipedia.org/wiki/UMTS">Universal Mobile Telecommunications System</a> (UMTS). Notably, it replaced both UMTS,
+            which descended from the 2G <a href="https://en.wikipedia.org/wiki/GSM">Global System for Mobile Communications</a> (GSM), as well as the 3G
+            <a href="https://en.wikipedia.org/wiki/CDMA2000">Code-Division Multiple Access 2000</a> (CDMA2000), which was the main competitor to UMTS.
+            For the first time, this meant that cell phone networks worldwide coalesced around a single protocol, removing the need for world travelers to carry a phone with dual radios.
+            One reason LTE was able to achieve this was by supporting a mixed-mode network, where CDMA2000 (or UMTS) was used for voice calls and LTE for data communications.
+            This provided a seamless upgrade path for cell phone operators. Over time, most carriers eventually switched to <a href="https://en.wikipedia.org/wiki/Voice_over_LTE">Voice over LTE</a> (VoLTE).</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_nr.html b/app/src/main/assets/it/explanations/network_nr.html
new file mode 100644 (file)
index 0000000..728ff4e
--- /dev/null
@@ -0,0 +1,37 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/5G_NR">5G New Radio</a> is the main 5G protocol.
+            It is the successor to 4G <a href="https://en.wikipedia.org/wiki/LTE_(telecommunication)">Long-Term Evolution</a> (LTE).
+            It is the first wireless protocol to generally include the generation (5G) in the name.
+        </p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_td_scdma.html b/app/src/main/assets/it/explanations/network_td_scdma.html
new file mode 100644 (file)
index 0000000..5ba2905
--- /dev/null
@@ -0,0 +1,39 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/UMTS#TD-SCDMA_(UTRA-TDD_1.28_Mcps_Low_Chip_Rate_(LCR))">Time-Division Synchronous Code-Division Multiple Access</a> (TD-SCDMA) is an extension to the 3G
+            <a href="https://en.wikipedia.org/wiki/UMTS">Universal Mobile Telecommunications System</a> (UMTS),
+            which is the 3G successor of the 2G <a href="https://en.wikipedia.org/wiki/GSM">Global System for Mobile Communications</a> (GSM)
+            and a competitor to the <a href="https://en.wikipedia.org/wiki/CDMA2000">Code-Division Multiple Access 2000</a> (CDMA2000) standard.
+            TD-SCDMA was only used in China.
+            UMTS evolved into the 4G <a href="https://en.wikipedia.org/wiki/LTE_(telecommunication)">Long-Term Evolution</a> (LTE), which was also adopted by CDMA networks.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_umts.html b/app/src/main/assets/it/explanations/network_umts.html
new file mode 100644 (file)
index 0000000..d20cc45
--- /dev/null
@@ -0,0 +1,37 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/UMTS">Universal Mobile Telecommunications System</a> (UMTS)
+            is the 3G successor to the 2G <a href="https://en.wikipedia.org/wiki/GSM">Global System for Mobile Communications</a> (GSM)
+            and a competitor to the <a href="https://en.wikipedia.org/wiki/CDMA2000">Code-Division Multiple Access 2000</a> (CDMA2000) standard.
+            UMTS evolved into 4G <a href="https://en.wikipedia.org/wiki/LTE_(telecommunication)">Long-Term Evolution</a> (LTE), which was also adopted by CDMA networks.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/network_unknown.html b/app/src/main/assets/it/explanations/network_unknown.html
new file mode 100644 (file)
index 0000000..783bbb7
--- /dev/null
@@ -0,0 +1,34 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p>The network type is unknown.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/override_network_lte_advanced_pro.html b/app/src/main/assets/it/explanations/override_network_lte_advanced_pro.html
new file mode 100644 (file)
index 0000000..cb9b9b6
--- /dev/null
@@ -0,0 +1,35 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/LTE_Advanced#LTE_Advanced_Pro">Long-Term Evolution Advanced Pro</a> (LTE-A Pro)
+            is a 4.5G update to the 4G <a href="https://en.wikipedia.org/wiki/LTE_(telecommunication)">LTE</a> protocol.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/override_network_lte_ca.html b/app/src/main/assets/it/explanations/override_network_lte_ca.html
new file mode 100644 (file)
index 0000000..12fb915
--- /dev/null
@@ -0,0 +1,35 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/Carrier_aggregation">Long-Term Evolution Carrier Aggregation</a> (LTE CA)
+            allows a 4G LTE connection to aggregate non-contiguous blocks of spectrum to increase data throughput.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/override_network_none.html b/app/src/main/assets/it/explanations/override_network_none.html
new file mode 100644 (file)
index 0000000..d0ee921
--- /dev/null
@@ -0,0 +1,34 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p>There is no additional network information. Usually this category only applies to certain 4G and 5G networks.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/override_network_nr_nsa.html b/app/src/main/assets/it/explanations/override_network_nr_nsa.html
new file mode 100644 (file)
index 0000000..72631ec
--- /dev/null
@@ -0,0 +1,37 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+    <p><a href="https://en.wikipedia.org/wiki/5G_NR#Non-standalone_mode">New Radio Non-Standalone</a> (NR NSA) uses the
+        4G <a href="https://en.wikipedia.org/wiki/LTE_(telecommunication)">LTE</a> protocols for the control channel and 5G NR for the data channel.
+        It provides much of the speed of 5G without any of the additional security benefits.
+        Android phones will list this as a 5G connection, but it is not protected against modern <a href="https://en.wikipedia.org/wiki/IMSI-catcher">stingray attacks</a>.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/override_network_nr_nsa_mmwave.html b/app/src/main/assets/it/explanations/override_network_nr_nsa_mmwave.html
new file mode 100644 (file)
index 0000000..855467e
--- /dev/null
@@ -0,0 +1,38 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+    <p><a href="https://en.wikipedia.org/wiki/5G_NR#Non-standalone_mode">New Radio Non-Standalone millimeter Wave</a> (NR NSA mmWave) uses the
+        4G <a href="https://en.wikipedia.org/wiki/LTE_(telecommunication)">LTE</a> protocols for the control channel
+        and 5G NR on the <a href="https://en.wikipedia.org/wiki/5G_NR#Frequency_bands">mmWave spectrum</a> (24.25–52.6 GHz) for the data channel.
+        It provides much of the speed of 5G without any of the additional security benefits.
+        Android phones will list this as a 5G connection, but it is not protected against modern <a href="https://en.wikipedia.org/wiki/IMSI-catcher">stingray attacks</a>.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/explanations/stingrays.html b/app/src/main/assets/it/explanations/stingrays.html
new file mode 100644 (file)
index 0000000..2a4cbee
--- /dev/null
@@ -0,0 +1,49 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p><a href="https://en.wikipedia.org/wiki/IMSI-catcher">IMSI catchers</a>, also known as stingrays, are fake cell phone towers that intercept your traffic and spy on you.
+            Each generation of cell phone protocols has attempted to mitigate stingrays, but each has generally failed.
+            With 5G, more of the traffic is encrypted in such a way that it prevents stingray spying.
+            However, 5G networks can run in a blended 4G/5G mode, where the control channel is 4G and the data channel is 5G.
+            This is known as <a href="https://en.wikipedia.org/wiki/5G_NR#Non-standalone_mode">5G NR NSA</a> (5G New Radio Non-Standalone) mode.
+            When connected to such a blended network,
+            a cell phone is not protected against <a href="https://www.wired.com/story/5g-network-stingray-surveillance-non-standalone/">modern stingray attacks</a>.</p>
+
+        <p>The Android status bar does not differentiate between 5G modes. It will display the same 5G icon for Standalone and Non-Standalone networks.
+            The purpose of Privacy Cell is to make it easy to tell what type of network you are connected to.
+            If you are in an area where you usually are connected to a <a href="https://en.wikipedia.org/wiki/5G_NR#Standalone_mode">5G NR SA</a> network and Privacy Cell shows a 5G NR NSA connection,
+            it is possible that a stingray has performed a downgrade attack to spy on your communications.</p>
+
+        <p>It should be noted that paltry attempts have been made to secure cell phone protocols in the past, which have never been sufficiently well designed to provide real protection.
+            Even if you are connected to a 5G NR SA network, it is likely that there are still unknown weaknesses in the network that can be exploited by a sufficiently funded adversary.
+            Privacy Cell will be updated regarding these types of vulnerabilities as future research identifies them.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/licenses.html b/app/src/main/assets/it/licenses.html
new file mode 100644 (file)
index 0000000..43dbe86
--- /dev/null
@@ -0,0 +1,995 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <h3>Copyright</h3>
+        <p>Privacy Cell copyright © 2021 <a href="mailto:soren@stoutner.com">Soren Stoutner</a>.</p>
+
+        <h3>License</h3>
+        <p>Privacy Cell 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://gitweb.stoutner.com/?p=PrivacyCell.git;a=summary">gitweb.stoutner.com</a>.</p>
+
+        <h3>Libraries</h3>
+        <p>Privacy Cell is built with the <a href="https://developer.android.com/jetpack/androidx/">AndroidX Libraries</a>,
+            the <a href="https://github.com/JetBrains/kotlin/tree/master/license">Kotlin libraries</a>,
+            and code from the <a href="https://mvnrepository.com/artifact/com.google.android.material/material">Google Material Maven repository</a>,
+            which 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.</p>
+
+        <h3>Icons</h3>
+        <p><img class="left" src="../images/privacy_cell.svg"/> is derived from <code>security</code> and <code>5g</code>,
+            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,2021 <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="../images/not_secure.svg"/> is derived from <code>security</code> and <code>do_not_disturb</code>,
+            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>.
+            Modifications copyright © 2016,2021 <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>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><svg class="icon"><use href="../images/bug_report_rounded.svg#icon"/></svg> bug_report_rounded.</p>
+        <p><svg class="icon"><use href="../images/call_to_action_rounded.svg#icon"/></svg> call_to_action_rounded.</p>
+        <p><svg class="icon"><use href="../images/chrome_reader_mode_rounded.svg#icon"/></svg> chrome_reader_mode_rounded.</p>
+        <p><svg class="icon"><use href="../images/fact_check_outlined.svg#icon"/></svg> fact_checked_outlined.</p>
+        <p><svg class="icon"><use href="../images/format_list_bulleted_rounded.svg#icon"/></svg> format_list_bulleted_rounded.</p>
+        <p><svg class="icon"><use href="../images/forum_rounded.svg#icon"/></svg> forum_rounded.</p>
+        <p><svg class="icon"><use href="../images/groups_filled.svg#icon"/></svg> groups_filled.</p>
+        <p><svg class="icon"><use href="../images/map_rounded.svg#icon"/></svg> map_rounded.</p>
+        <p><svg class="icon"><use href="../images/payments_rounded.svg#icon"/></svg> payments_rounded.</p>
+        <p><svg class="icon"><use href="../images/phone_android_outlined.svg#icon"/></svg> phone_android_outlined.</p>
+        <p><svg class="icon"><use href="../images/policy_filled.svg#icon"/></svg> policy_filled.</p>
+        <p><svg class="icon"><use href="../images/settings_rounded.svg#icon"/></svg> settings_rounded.</p>
+        <p><svg class="icon"><use href="../images/text_snippet_outlined.svg#icon"/></svg> text_snippet_outlined.</p>
+
+        <hr/>
+
+        <h3 style="text-align: center;">GNU General Public License</h3>
+        <p style="text-align: center;">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 style="text-align: center;">Apache License</h3>
+        <p style="text-align: center;">Version 2.0, January 2004</p>
+        <p style="text-align: center;"><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>
\ No newline at end of file
diff --git a/app/src/main/assets/it/permissions.html b/app/src/main/assets/it/permissions.html
new file mode 100644 (file)
index 0000000..575ab51
--- /dev/null
@@ -0,0 +1,38 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <p>Privacy Cell richiede le seguenti autorizzazioni.</p>
+
+        <h3>Lettura dello stato e dell'identità del telefono</h3>
+        <p><a href="https://developer.android.com/reference/android/Manifest.permission.html#READ_PHONE_STATE">android.permission. READ_PHONE_STATE</a></p>
+        <p>Richiesta per determinare i protocolli utilizzati dalla rete.</p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/assets/it/privacy_policy.html b/app/src/main/assets/it/privacy_policy.html
new file mode 100644 (file)
index 0000000..a041bad
--- /dev/null
@@ -0,0 +1,90 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  Translation 2021 Francesco Buratti.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<html>
+    <head>
+        <meta charset="UTF-8">
+
+        <link rel="stylesheet" href="../css/theme.css">
+
+        <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
+        <meta name="color-scheme" content="light dark">
+    </head>
+
+    <body>
+        <h3>Privacy Cell</h3>
+        <p><strong class="red">Privacy Cell does not collect any user information.</strong></p>
+
+        <h3>Google Play</h3>
+        <p>Google Play has its <a href="https://policies.google.com/privacy">own privacy policy</a>.
+            Google provides anonymized summary installation information 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://policies.google.com/privacy">own privacy policy</a>.
+            Google provides developers with anonymized summaries 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. 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://policies.google.com/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="blue">Stoutner may use this information to assist in the development of Privacy Cell and communicate the status of the project to users.</strong>
+            <strong class="red">Stoutner will never sell the 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.0, 23 August 2021</em></p>
+    </body>
+</html>
\ No newline at end of file
diff --git a/app/src/main/java/com/stoutner/privacycell/activities/PrivacyCell.kt b/app/src/main/java/com/stoutner/privacycell/activities/PrivacyCell.kt
deleted file mode 100644 (file)
index acdc97b..0000000
+++ /dev/null
@@ -1,478 +0,0 @@
-/*
- * Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
- *
- * This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
- *
- * Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-package com.stoutner.privacycell.activities
-
-import android.Manifest
-import android.content.Context
-import android.content.Intent
-import android.content.pm.PackageManager
-import android.net.Uri
-import android.os.Bundle
-import android.telephony.PhoneStateListener
-import android.telephony.ServiceState
-import android.telephony.TelephonyDisplayInfo
-import android.telephony.TelephonyManager
-import android.view.MenuItem
-import android.view.View
-import android.widget.ImageView
-import android.widget.LinearLayout
-import android.widget.TextView
-
-import androidx.appcompat.app.ActionBar
-import androidx.appcompat.app.ActionBarDrawerToggle
-import androidx.appcompat.app.AppCompatActivity
-import androidx.appcompat.content.res.AppCompatResources
-import androidx.appcompat.widget.Toolbar
-import androidx.core.app.ActivityCompat
-import androidx.core.view.GravityCompat
-import androidx.drawerlayout.widget.DrawerLayout
-
-import com.google.android.material.navigation.NavigationView
-
-import com.stoutner.privacycell.R
-import com.stoutner.privacycell.dialogs.PhonePermissionDialog
-import com.stoutner.privacycell.dialogs.WebViewDialog
-
-class PrivacyCell : AppCompatActivity(), NavigationView.OnNavigationItemSelectedListener, PhonePermissionDialog.StoragePermissionDialogListener {
-    // Declare the class variables.
-    private lateinit var context: Context
-    private lateinit var telephonyManager: TelephonyManager
-    private lateinit var actionBarDrawerToggle: ActionBarDrawerToggle
-
-    // Declare the views.
-    private lateinit var drawerLayout: DrawerLayout
-    private lateinit var stingrayLinearLayout: LinearLayout
-    private lateinit var stingrayImageView: ImageView
-    private lateinit var stingrayTextView: TextView
-    private lateinit var voiceNetworkLinearLayout: LinearLayout
-    private lateinit var voiceNetworkTextView: TextView
-    private lateinit var voiceNetworkDetailsTextView: TextView
-    private lateinit var dataNetworkLinearLayout: LinearLayout
-    private lateinit var dataNetworkTextView: TextView
-    private lateinit var dataNetworkDetailsTextView: TextView
-    private lateinit var additionalNetworkInfoLinearLayout: LinearLayout
-    private lateinit var additionalNetworkInfoTextView: TextView
-    private lateinit var additionalNetworkInfoDetailsTextView: TextView
-
-    override fun onCreate(savedInstanceState: Bundle?) {
-        // Run the default commands.
-        super.onCreate(savedInstanceState)
-
-        // Set the content view.
-        setContentView(R.layout.privacy_cell_drawerlayout)
-
-        // Get handles for the views.
-        drawerLayout = findViewById(R.id.drawerlayout)
-        val toolbar = findViewById<Toolbar>(R.id.toolbar)
-        stingrayLinearLayout = findViewById(R.id.stingray_linearlayout)
-        stingrayImageView = findViewById(R.id.stingray_imageview)
-        stingrayTextView = findViewById(R.id.stingray_textview)
-        voiceNetworkLinearLayout = findViewById(R.id.voice_network_linearlayout)
-        voiceNetworkTextView = findViewById(R.id.voice_network)
-        voiceNetworkDetailsTextView = findViewById(R.id.voice_network_details)
-        dataNetworkLinearLayout = findViewById(R.id.data_network_linearlayout)
-        dataNetworkTextView = findViewById(R.id.data_network)
-        dataNetworkDetailsTextView = findViewById(R.id.data_network_details)
-        additionalNetworkInfoLinearLayout = findViewById(R.id.additional_network_info_linearlayout)
-        additionalNetworkInfoTextView = findViewById(R.id.additional_network_info)
-        additionalNetworkInfoDetailsTextView = findViewById(R.id.additional_network_info_details)
-        val navigationView = findViewById<NavigationView>(R.id.navigationview)
-
-        // Get handles for the context and the telephony manager.
-        context = this
-        telephonyManager = getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager
-
-        // Set the support action bar.
-        setSupportActionBar(toolbar)
-
-        // Get a handle for the action bar.
-        val actionBar = supportActionBar!!
-
-        // Set a custom view on the action bar.
-        actionBar.setCustomView(R.layout.app_bar_textview)
-
-        // Display the custom view.
-        actionBar.displayOptions = ActionBar.DISPLAY_SHOW_CUSTOM
-
-        // Define a hamburger icon at the start of the app bar.  It will be populated in `onPostCreate()`.
-        actionBarDrawerToggle = ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.open_navigation_drawer, R.string.close_navigation_drawer)
-
-        // Listen for touches on the navigation menu.
-        navigationView.setNavigationItemSelectedListener(this)
-
-        // Add a drawer listener.
-        drawerLayout.addDrawerListener(object : DrawerLayout.DrawerListener {
-            override fun onDrawerSlide(drawerView: View, slideOffset: Float) {
-                // Do nothing.
-            }
-
-            override fun onDrawerOpened(drawerView: View) {
-                // Do nothing.
-            }
-
-            override fun onDrawerClosed(drawerView: View) {
-                // Reset the drawer icon when the drawer is closed.  Otherwise, it is an arrow if the drawer is open when the app is restarted.
-                actionBarDrawerToggle.syncState()
-            }
-
-            override fun onDrawerStateChanged(newState: Int) {
-                // Do nothing.
-            }
-        })
-    }
-
-    override fun onPostCreate(savedInstanceState: Bundle?) {
-        // Run the default commands.
-        super.onPostCreate(savedInstanceState)
-
-        // Sync the state of the DrawerToggle after the default `onRestoreInstanceState()` has finished.  This creates the navigation drawer icon.
-        actionBarDrawerToggle.syncState()
-    }
-
-    override fun onResume() {
-        // Run the default commands.
-        super.onResume()
-
-        // Check to see if the read phone state permission has been granted.  These commands need to be run on every resume so that the listener gets reassigned as it is automatically paused.
-        if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_GRANTED) {  // The storage permission has been granted.
-            // Populate Privacy Cell.
-            populatePrivacyCell()
-        } else {  // The phone permission has not been granted.
-            // Check if the user has previously denied the storage permission.
-            if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.READ_PHONE_STATE)) {  // Show a dialog explaining the request first.
-                // Check to see if a phone permission dialog is already displayed.  This happens if the app is restarted when the dialog is shown.
-                if (supportFragmentManager.findFragmentByTag(getString(R.string.phone_permission)) == null) {  // No dialog is currently shown.
-                    // Instantiate the phone permission dialog fragment.
-                    val phonePermissionDialogFragment = PhonePermissionDialog()
-
-                    // Show the phone permission alert dialog.  The permission will be requested when the dialog is closed.
-                    phonePermissionDialogFragment.show(supportFragmentManager, getString(R.string.phone_permission))
-                }
-            } else {  // Show the permission request directly.
-                // Request the read phone state permission.  There is only one permission request in the app, so it has a request code of 0.
-                ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.READ_PHONE_STATE), 0)
-            }
-        }
-    }
-
-    override fun onNavigationItemSelected(menuItem: MenuItem) : Boolean {
-        // Run the commands that correspond to the selected menu item.
-        when (menuItem.itemId) {
-            R.id.permissions -> {  // Permissions.
-                // Instantiate the permissions dialog fragment.
-                val permissionsDialogFragment = WebViewDialog().type(WebViewDialog.PERMISSIONS)
-
-                // Show the alert dialog.
-                permissionsDialogFragment.show(supportFragmentManager, getString(R.string.permissions))
-            }
-
-            R.id.privacy_policy -> {  // Privacy Policy.
-                // Instantiate the privacy policy dialog fragment.
-                val privacyPolicyDialogFragment = WebViewDialog().type(WebViewDialog.PRIVACY_POLICY)
-
-                // Show the alert dialog.
-                privacyPolicyDialogFragment.show(supportFragmentManager, getString(R.string.privacy_policy))
-            }
-
-            R.id.changelog -> {  // Changelog.
-                // Instantiate the changelog dialog fragment.
-                val changelogDialogFragment = WebViewDialog().type(WebViewDialog.CHANGELOG)
-
-                // Show the alert dialog.
-                changelogDialogFragment.show(supportFragmentManager, getString(R.string.changelog))
-            }
-
-            R.id.licenses -> {  // Licenses.
-                // Instantiate the licenses dialog fragment.
-                val licensesDialogFragment = WebViewDialog().type(WebViewDialog.LICENSES)
-
-                // Show the alert dialog.
-                licensesDialogFragment.show(supportFragmentManager, getString(R.string.licenses))
-            }
-
-            R.id.contributors -> {  // Contributors.
-                // Instantiate the contributors dialog fragment.
-                val contributorsDialogFragment = WebViewDialog().type(WebViewDialog.CONTRIBUTORS)
-
-                // Show the alert dialog.
-                contributorsDialogFragment.show(supportFragmentManager, getString(R.string.contributors))
-            }
-
-            R.id.news -> {  // News.
-                // Create a news URL intent.
-                val newsUrlIntent = Intent(Intent.ACTION_VIEW)
-
-                // Add the URL to the intent.
-                newsUrlIntent.data = Uri.parse("https://www.stoutner.com/category/privacy-cell/")
-
-                // Make it so.
-                startActivity(newsUrlIntent)
-            }
-
-            R.id.roadmap -> {  // Roadmap.
-                // Create a roadmap URL intent.
-                val roadmapUrlIntent = Intent(Intent.ACTION_VIEW)
-
-                // Add the URL to the intent.
-                roadmapUrlIntent.data = Uri.parse("https://www.stoutner.com/category/privacy-cell-roadmap/")
-
-                // Make it so.
-                startActivity(roadmapUrlIntent)
-            }
-
-            R.id.bug_tracker -> {  // Bug tracker.
-                // Create a bug tracker URL intent.
-                val bugTrackerUrlIntent = Intent(Intent.ACTION_VIEW)
-
-                // Add the URL to the intent.
-                bugTrackerUrlIntent.data = Uri.parse("https://redmine.stoutner.com/projects/privacy-cell/issues")
-
-                // Make it so.
-                startActivity(bugTrackerUrlIntent)
-            }
-
-            R.id.forum -> {  // Forum.
-                // Create a forum URL intent.
-                val forumUrlIntent = Intent(Intent.ACTION_VIEW)
-
-                // Add the URL to the intent.
-                forumUrlIntent.data = Uri.parse("https://redmine.stoutner.com/projects/privacy-cell/boards")
-
-                // Make it so.
-                startActivity(forumUrlIntent)
-            }
-
-            R.id.donations -> {  // Donations.
-                // Create a donations URL intent.
-                val donationsUrlIntent = Intent(Intent.ACTION_VIEW)
-
-                // Add the URL to the intent.
-                donationsUrlIntent.data = Uri.parse("https://www.stoutner.com/donations/")
-
-                // Make it so.
-                startActivity(donationsUrlIntent)
-            }
-        }
-
-        // Close the navigation drawer.
-        drawerLayout.closeDrawer(GravityCompat.START)
-
-        // Consume the click.
-        return true
-    }
-
-    override fun onCloseStoragePermissionDialog() {
-        // Request the read phone state permission.  There is only one permission request in the app, so it has a request code of 0.
-        ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.READ_PHONE_STATE), 0)
-    }
-
-    override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray) {
-        // Run the default commands.
-        super.onRequestPermissionsResult(requestCode, permissions, grantResults)
-
-        //Only process the results if they exist (this method is triggered when a dialog is presented the first time for an app, but no grant results are included).
-        if (grantResults.isNotEmpty()) {
-            // Check to see if the read phone state permission was granted.  If the dialog was canceled the grant results will be empty.
-            if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {  // The read phone state permission was granted.
-                // Populate Privacy Cell.
-                populatePrivacyCell()
-            } else {  // The read phone state permission was denied.
-                // Display the phone permission text on the main activity.
-                stingrayTextView.text = getString(R.string.phone_permission_text)
-            }
-        }
-    }
-
-    private fun populatePrivacyCell() {
-        // Listen to changes in the cell network state.
-        telephonyManager.listen(object : PhoneStateListener() {
-            override fun onDisplayInfoChanged(telephonyDisplayInfo: TelephonyDisplayInfo) {
-                // Populate the stingray security information.  <https://source.android.com/devices/tech/connect/acts-5g-testing>
-                if (telephonyDisplayInfo.networkType == TelephonyManager.NETWORK_TYPE_NR) {  // This is a secure 5G NR SA network.
-                    // Populate the image view.
-                    stingrayImageView.setImageDrawable(AppCompatResources.getDrawable(context, R.drawable.secure_5g_nr_sa))
-
-                    // Set the text.
-                    stingrayTextView.text = getString(R.string.secure_from_stingray)
-
-                    // Set the text color.
-                    stingrayTextView.setTextColor(getColor(R.color.blue_text))
-                } else {  // This is not a secure 5G NR SA network.
-                    // Populate the image view.
-                    stingrayImageView.setImageDrawable(AppCompatResources.getDrawable(context, R.drawable.not_secure))
-
-                    // Set the text.
-                    stingrayTextView.text = getString(R.string.not_secure_from_stingray)
-
-                    // Set the text color.
-                    stingrayTextView.setTextColor(getColor(R.color.red_text))
-                }
-
-                // Get the strings that correspond to the network information.
-                val dataNetworkType = getNetworkType(telephonyDisplayInfo.networkType)
-                val additionalNetworkInfo = getAdditionalNetworkInfo(telephonyDisplayInfo.overrideNetworkType)
-
-                // Populate the data network text views.
-                dataNetworkTextView.text = getString(R.string.data_network, dataNetworkType[0])
-                dataNetworkDetailsTextView.text = dataNetworkType[1]
-                additionalNetworkInfoTextView.text = getString(R.string.additional_network_info, additionalNetworkInfo[0])
-                additionalNetworkInfoDetailsTextView.text = additionalNetworkInfo[1]
-
-                // Set the stingray click listener.
-                stingrayLinearLayout.setOnClickListener {
-                    // Instantiate the stingray dialog fragment.
-                    val stingrayDialogFragment = WebViewDialog().type(WebViewDialog.STINGRAY)
-
-                    // Show the alert dialog.
-                    stingrayDialogFragment.show(supportFragmentManager, getString(R.string.stingrays))
-                }
-
-                // Set the data network click listener.
-                dataNetworkLinearLayout.setOnClickListener {
-                    // Instantiate the data network dialog fragment according to the network type.
-                    val dataNetworkDialogFragment = when (telephonyDisplayInfo.networkType) {
-                        TelephonyManager.NETWORK_TYPE_UNKNOWN -> WebViewDialog().type(WebViewDialog.NETWORK_UNKNOWN)
-                        TelephonyManager.NETWORK_TYPE_GPRS -> WebViewDialog().type(WebViewDialog.NETWORK_GPRS)
-                        TelephonyManager.NETWORK_TYPE_EDGE -> WebViewDialog().type(WebViewDialog.NETWORK_EDGE)
-                        TelephonyManager.NETWORK_TYPE_UMTS -> WebViewDialog().type(WebViewDialog.NETWORK_UMTS)
-                        TelephonyManager.NETWORK_TYPE_CDMA -> WebViewDialog().type(WebViewDialog.NETWORK_CDMA)
-                        TelephonyManager.NETWORK_TYPE_EVDO_0 -> WebViewDialog().type(WebViewDialog.NETWORK_EVDO_0)
-                        TelephonyManager.NETWORK_TYPE_EVDO_A -> WebViewDialog().type(WebViewDialog.NETWORK_EVDO_A)
-                        TelephonyManager.NETWORK_TYPE_1xRTT -> WebViewDialog().type(WebViewDialog.NETWORK_1xRTT)
-                        TelephonyManager.NETWORK_TYPE_HSDPA -> WebViewDialog().type(WebViewDialog.NETWORK_HSDPA)
-                        TelephonyManager.NETWORK_TYPE_HSUPA -> WebViewDialog().type(WebViewDialog.NETWORK_HSUPA)
-                        TelephonyManager.NETWORK_TYPE_HSPA -> WebViewDialog().type(WebViewDialog.NETWORK_HSPA)
-                        TelephonyManager.NETWORK_TYPE_IDEN -> WebViewDialog().type(WebViewDialog.NETWORK_IDEN)
-                        TelephonyManager.NETWORK_TYPE_EVDO_B -> WebViewDialog().type(WebViewDialog.NETWORK_EVDO_B)
-                        TelephonyManager.NETWORK_TYPE_LTE -> WebViewDialog().type(WebViewDialog.NETWORK_LTE)
-                        TelephonyManager.NETWORK_TYPE_EHRPD -> WebViewDialog().type(WebViewDialog.NETWORK_EHRPD)
-                        TelephonyManager.NETWORK_TYPE_HSPAP -> WebViewDialog().type(WebViewDialog.NETWORK_HSPAP)
-                        TelephonyManager.NETWORK_TYPE_GSM -> WebViewDialog().type(WebViewDialog.NETWORK_GSM)
-                        TelephonyManager.NETWORK_TYPE_TD_SCDMA -> WebViewDialog().type(WebViewDialog.NETWORK_TD_SCDMA)
-                        TelephonyManager.NETWORK_TYPE_IWLAN -> WebViewDialog().type(WebViewDialog.NETWORK_IWLAN)
-                        TelephonyManager.NETWORK_TYPE_NR -> WebViewDialog().type(WebViewDialog.NETWORK_NR)
-                        else -> WebViewDialog().type(WebViewDialog.NETWORK_UNKNOWN)
-                    }
-
-                    // Show the alert dialog.
-                    dataNetworkDialogFragment.show(supportFragmentManager, getString(R.string.voice_network))
-                }
-
-                // Set the additional network info click listener.
-                additionalNetworkInfoLinearLayout.setOnClickListener {
-                    // Instantiate the initial network info dialog fragment according to the network type.
-                    val additionalNetworkInfoDialogFragment = when (telephonyDisplayInfo.overrideNetworkType) {
-                        TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NONE -> WebViewDialog().type(WebViewDialog.OVERRIDE_NETWORK_NONE)
-                        TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_LTE_CA -> WebViewDialog().type(WebViewDialog.OVERRIDE_NETWORK_LTE_CA)
-                        TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_LTE_ADVANCED_PRO -> WebViewDialog().type(WebViewDialog.OVERRIDE_NETWORK_LTE_ADVANCED_PRO)
-                        TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA -> WebViewDialog().type(WebViewDialog.OVERRIDE_NETWORK_NR_NSA)
-                        TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA_MMWAVE -> WebViewDialog().type(WebViewDialog.OVERRIDE_NETWORK_NR_NSA_MMWAVE)
-                        else -> WebViewDialog().type(WebViewDialog.OVERRIDE_NETWORK_NR_NSA_MMWAVE)
-                    }
-
-                    // Show the alert dialog.
-                    additionalNetworkInfoDialogFragment.show(supportFragmentManager, getString(R.string.voice_network))
-                }
-            }
-
-            override fun onServiceStateChanged(serviceState: ServiceState) {
-                // Get the network registration info for the voice network, which is the second of the three entries (the first appears to be Wi-Fi and the third appears to be the cell data network).
-                val networkRegistrationInfo = serviceState.networkRegistrationInfoList[1]
-
-                // Get the voice network type.
-                val voiceNetworkType = getNetworkType(networkRegistrationInfo.accessNetworkTechnology)
-
-                // Populate the voice network text views.
-                voiceNetworkTextView.text = getString(R.string.voice_network, voiceNetworkType[0])
-                voiceNetworkDetailsTextView.text = voiceNetworkType[1]
-
-                // Set the voice network click listener.
-                voiceNetworkLinearLayout.setOnClickListener {
-                    // Instantiate the voice network dialog fragment according to the network type.
-                    val voiceNetworkDialogFragment = when (networkRegistrationInfo.accessNetworkTechnology) {
-                        TelephonyManager.NETWORK_TYPE_UNKNOWN -> WebViewDialog().type(WebViewDialog.NETWORK_UNKNOWN)
-                        TelephonyManager.NETWORK_TYPE_GPRS -> WebViewDialog().type(WebViewDialog.NETWORK_GPRS)
-                        TelephonyManager.NETWORK_TYPE_EDGE -> WebViewDialog().type(WebViewDialog.NETWORK_EDGE)
-                        TelephonyManager.NETWORK_TYPE_UMTS -> WebViewDialog().type(WebViewDialog.NETWORK_UMTS)
-                        TelephonyManager.NETWORK_TYPE_CDMA -> WebViewDialog().type(WebViewDialog.NETWORK_CDMA)
-                        TelephonyManager.NETWORK_TYPE_EVDO_0 -> WebViewDialog().type(WebViewDialog.NETWORK_EVDO_0)
-                        TelephonyManager.NETWORK_TYPE_EVDO_A -> WebViewDialog().type(WebViewDialog.NETWORK_EVDO_A)
-                        TelephonyManager.NETWORK_TYPE_1xRTT -> WebViewDialog().type(WebViewDialog.NETWORK_1xRTT)
-                        TelephonyManager.NETWORK_TYPE_HSDPA -> WebViewDialog().type(WebViewDialog.NETWORK_HSDPA)
-                        TelephonyManager.NETWORK_TYPE_HSUPA -> WebViewDialog().type(WebViewDialog.NETWORK_HSUPA)
-                        TelephonyManager.NETWORK_TYPE_HSPA -> WebViewDialog().type(WebViewDialog.NETWORK_HSPA)
-                        TelephonyManager.NETWORK_TYPE_IDEN -> WebViewDialog().type(WebViewDialog.NETWORK_IDEN)
-                        TelephonyManager.NETWORK_TYPE_EVDO_B -> WebViewDialog().type(WebViewDialog.NETWORK_EVDO_B)
-                        TelephonyManager.NETWORK_TYPE_LTE -> WebViewDialog().type(WebViewDialog.NETWORK_LTE)
-                        TelephonyManager.NETWORK_TYPE_EHRPD -> WebViewDialog().type(WebViewDialog.NETWORK_EHRPD)
-                        TelephonyManager.NETWORK_TYPE_HSPAP -> WebViewDialog().type(WebViewDialog.NETWORK_HSPAP)
-                        TelephonyManager.NETWORK_TYPE_GSM -> WebViewDialog().type(WebViewDialog.NETWORK_GSM)
-                        TelephonyManager.NETWORK_TYPE_TD_SCDMA -> WebViewDialog().type(WebViewDialog.NETWORK_TD_SCDMA)
-                        TelephonyManager.NETWORK_TYPE_IWLAN -> WebViewDialog().type(WebViewDialog.NETWORK_IWLAN)
-                        TelephonyManager.NETWORK_TYPE_NR -> WebViewDialog().type(WebViewDialog.NETWORK_NR)
-                        else -> WebViewDialog().type(WebViewDialog.NETWORK_UNKNOWN)
-                    }
-
-                    // Show the alert dialog.
-                    voiceNetworkDialogFragment.show(supportFragmentManager, getString(R.string.voice_network))
-                }
-            }
-        }, PhoneStateListener.LISTEN_DISPLAY_INFO_CHANGED or PhoneStateListener.LISTEN_SERVICE_STATE)
-    }
-
-    private fun getNetworkType(networkType: Int) : Array<String> {
-        // Return the string that corresponds to the network type.
-        return when(networkType) {
-            TelephonyManager.NETWORK_TYPE_UNKNOWN -> arrayOf(getString(R.string.unknown), "")
-            TelephonyManager.NETWORK_TYPE_GPRS -> arrayOf(getString(R.string.gprs), getString(R.string.gprs_detail))
-            TelephonyManager.NETWORK_TYPE_EDGE -> arrayOf(getString(R.string.edge), getString(R.string.edge_detail))
-            TelephonyManager.NETWORK_TYPE_UMTS -> arrayOf(getString(R.string.umts), getString(R.string.umts_detail))
-            TelephonyManager.NETWORK_TYPE_CDMA -> arrayOf(getString(R.string.cdma), getString(R.string.cdma_detail))
-            TelephonyManager.NETWORK_TYPE_EVDO_0 -> arrayOf(getString(R.string.evdo_0), getString(R.string.evdo_0_detail))
-            TelephonyManager.NETWORK_TYPE_EVDO_A -> arrayOf(getString(R.string.evdo_a), getString(R.string.evdo_a_detail))
-            TelephonyManager.NETWORK_TYPE_1xRTT -> arrayOf(getString(R.string.rtt), getString(R.string.rtt_detail))
-            TelephonyManager.NETWORK_TYPE_HSDPA -> arrayOf(getString(R.string.hsdpa), getString(R.string.hsdpa_detail))
-            TelephonyManager.NETWORK_TYPE_HSUPA -> arrayOf(getString(R.string.hsupa), getString(R.string.hsupa_detail))
-            TelephonyManager.NETWORK_TYPE_HSPA -> arrayOf(getString(R.string.hspa), getString(R.string.hspa_detail))
-            TelephonyManager.NETWORK_TYPE_IDEN -> arrayOf(getString(R.string.iden), getString(R.string.iden_detail))
-            TelephonyManager.NETWORK_TYPE_EVDO_B -> arrayOf(getString(R.string.evdo_b), getString(R.string.evdo_b_detail))
-            TelephonyManager.NETWORK_TYPE_LTE -> arrayOf(getString(R.string.lte), getString(R.string.lte_detail))
-            TelephonyManager.NETWORK_TYPE_EHRPD -> arrayOf(getString(R.string.ehrpd), getString(R.string.ehrpd_detail))
-            TelephonyManager.NETWORK_TYPE_HSPAP -> arrayOf(getString(R.string.hspap), getString(R.string.hspap_detail))
-            TelephonyManager.NETWORK_TYPE_GSM -> arrayOf(getString(R.string.gsm), getString(R.string.gsm_detail))
-            TelephonyManager.NETWORK_TYPE_TD_SCDMA -> arrayOf(getString(R.string.td_scdma), getString(R.string.td_scdma_detail))
-            TelephonyManager.NETWORK_TYPE_IWLAN -> arrayOf(getString(R.string.iwlan), getString(R.string.iwlan_detail))
-            TelephonyManager.NETWORK_TYPE_NR -> arrayOf(getString(R.string.nr), getString(R.string.nr_detail))
-            else -> arrayOf(getString(R.string.error), "")
-        }
-    }
-
-    private fun getAdditionalNetworkInfo(overrideNetworkType: Int) : Array<String> {
-        // Return the string that corresponds to the override network type.
-        return when(overrideNetworkType) {
-            TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NONE -> arrayOf(getString(R.string.none), "")
-            TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_LTE_CA -> arrayOf(getString(R.string.lte_ca), getString(R.string.lte_ca_detail))
-            TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_LTE_ADVANCED_PRO -> arrayOf(getString(R.string.lte_advanced_pro), getString(R.string.lte_advanced_pro_detail))
-            TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA -> arrayOf(getString(R.string.nr_nsa), getString(R.string.nr_nsa_detail))
-            TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA_MMWAVE -> arrayOf(getString(R.string.nr_nsa_mmwave), getString(R.string.nr_nsa_mmwave_detail))
-            else -> arrayOf(getString(R.string.error), "")
-        }
-    }
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/stoutner/privacycell/activities/PrivacyCellActivity.kt b/app/src/main/java/com/stoutner/privacycell/activities/PrivacyCellActivity.kt
new file mode 100644 (file)
index 0000000..296a952
--- /dev/null
@@ -0,0 +1,497 @@
+/*
+ * Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+ *
+ * This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+ *
+ * Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package com.stoutner.privacycell.activities
+
+import android.Manifest
+import android.content.Context
+import android.content.Intent
+import android.content.pm.PackageManager
+import android.net.Uri
+import android.os.Bundle
+import android.telephony.PhoneStateListener
+import android.telephony.ServiceState
+import android.telephony.TelephonyDisplayInfo
+import android.telephony.TelephonyManager
+import android.view.MenuItem
+import android.view.View
+import android.widget.ImageView
+import android.widget.LinearLayout
+import android.widget.TextView
+
+import androidx.appcompat.app.ActionBar
+import androidx.appcompat.app.ActionBarDrawerToggle
+import androidx.appcompat.app.AppCompatActivity
+import androidx.appcompat.content.res.AppCompatResources
+import androidx.appcompat.widget.Toolbar
+import androidx.core.app.ActivityCompat
+import androidx.core.view.GravityCompat
+import androidx.drawerlayout.widget.DrawerLayout
+import androidx.preference.PreferenceManager
+
+import com.google.android.material.navigation.NavigationView
+
+import com.stoutner.privacycell.R
+import com.stoutner.privacycell.dialogs.PhonePermissionDialog
+import com.stoutner.privacycell.dialogs.WebViewDialog
+
+class PrivacyCellActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelectedListener, PhonePermissionDialog.StoragePermissionDialogListener {
+    // Declare the class variables.
+    private lateinit var context: Context
+    private lateinit var telephonyManager: TelephonyManager
+    private lateinit var actionBarDrawerToggle: ActionBarDrawerToggle
+
+    // Declare the views.
+    private lateinit var drawerLayout: DrawerLayout
+    private lateinit var stingrayLinearLayout: LinearLayout
+    private lateinit var stingrayImageView: ImageView
+    private lateinit var stingrayTextView: TextView
+    private lateinit var voiceNetworkLinearLayout: LinearLayout
+    private lateinit var voiceNetworkTextView: TextView
+    private lateinit var voiceNetworkDetailsTextView: TextView
+    private lateinit var dataNetworkLinearLayout: LinearLayout
+    private lateinit var dataNetworkTextView: TextView
+    private lateinit var dataNetworkDetailsTextView: TextView
+    private lateinit var additionalNetworkInfoLinearLayout: LinearLayout
+    private lateinit var additionalNetworkInfoTextView: TextView
+    private lateinit var additionalNetworkInfoDetailsTextView: TextView
+
+    override fun onCreate(savedInstanceState: Bundle?) {
+        // Run the default commands.
+        super.onCreate(savedInstanceState)
+
+        // Get a handle for the shared preferences.
+        val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this)
+
+        // Get the bottom app bar preference.
+        val bottomAppBar = sharedPreferences.getBoolean(getString(R.string.bottom_app_bar_key), false)
+
+        // Set the content view.
+        if (bottomAppBar) {
+            setContentView(R.layout.privacy_cell_bottom_appbar)
+        } else {
+            setContentView(R.layout.privacy_cell_top_appbar)
+        }
+
+        // Get handles for the views.
+        drawerLayout = findViewById(R.id.drawerlayout)
+        val toolbar = findViewById<Toolbar>(R.id.toolbar)
+        stingrayLinearLayout = findViewById(R.id.stingray_linearlayout)
+        stingrayImageView = findViewById(R.id.stingray_imageview)
+        stingrayTextView = findViewById(R.id.stingray_textview)
+        voiceNetworkLinearLayout = findViewById(R.id.voice_network_linearlayout)
+        voiceNetworkTextView = findViewById(R.id.voice_network)
+        voiceNetworkDetailsTextView = findViewById(R.id.voice_network_details)
+        dataNetworkLinearLayout = findViewById(R.id.data_network_linearlayout)
+        dataNetworkTextView = findViewById(R.id.data_network)
+        dataNetworkDetailsTextView = findViewById(R.id.data_network_details)
+        additionalNetworkInfoLinearLayout = findViewById(R.id.additional_network_info_linearlayout)
+        additionalNetworkInfoTextView = findViewById(R.id.additional_network_info)
+        additionalNetworkInfoDetailsTextView = findViewById(R.id.additional_network_info_details)
+        val navigationView = findViewById<NavigationView>(R.id.navigationview)
+
+        // Get handles for the context and the telephony manager.
+        context = this
+        telephonyManager = getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager
+
+        // Set the support action bar.
+        setSupportActionBar(toolbar)
+
+        // Get a handle for the action bar.
+        val actionBar = supportActionBar!!
+
+        // Set a custom view on the action bar.
+        actionBar.setCustomView(R.layout.app_bar_textview)
+
+        // Display the custom view.
+        actionBar.displayOptions = ActionBar.DISPLAY_SHOW_CUSTOM
+
+        // Define a hamburger icon at the start of the app bar.  It will be populated in `onPostCreate()`.
+        actionBarDrawerToggle = ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.open_navigation_drawer, R.string.close_navigation_drawer)
+
+        // Listen for touches on the navigation menu.
+        navigationView.setNavigationItemSelectedListener(this)
+
+        // Add a drawer listener.
+        drawerLayout.addDrawerListener(object : DrawerLayout.DrawerListener {
+            override fun onDrawerSlide(drawerView: View, slideOffset: Float) {
+                // Do nothing.
+            }
+
+            override fun onDrawerOpened(drawerView: View) {
+                // Do nothing.
+            }
+
+            override fun onDrawerClosed(drawerView: View) {
+                // Reset the drawer icon when the drawer is closed.  Otherwise, it is an arrow if the drawer is open when the app is restarted.
+                actionBarDrawerToggle.syncState()
+            }
+
+            override fun onDrawerStateChanged(newState: Int) {
+                // Do nothing.
+            }
+        })
+    }
+
+    override fun onPostCreate(savedInstanceState: Bundle?) {
+        // Run the default commands.
+        super.onPostCreate(savedInstanceState)
+
+        // Sync the state of the DrawerToggle after the default `onRestoreInstanceState()` has finished.  This creates the navigation drawer icon.
+        actionBarDrawerToggle.syncState()
+    }
+
+    override fun onResume() {
+        // Run the default commands.
+        super.onResume()
+
+        // Check to see if the read phone state permission has been granted.  These commands need to be run on every resume so that the listener gets reassigned as it is automatically paused.
+        if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_GRANTED) {  // The storage permission has been granted.
+            // Populate Privacy Cell.
+            populatePrivacyCell()
+        } else {  // The phone permission has not been granted.
+            // Check if the user has previously denied the storage permission.
+            if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.READ_PHONE_STATE)) {  // Show a dialog explaining the request first.
+                // Check to see if a phone permission dialog is already displayed.  This happens if the app is restarted when the dialog is shown.
+                if (supportFragmentManager.findFragmentByTag(getString(R.string.phone_permission)) == null) {  // No dialog is currently shown.
+                    // Instantiate the phone permission dialog fragment.
+                    val phonePermissionDialogFragment = PhonePermissionDialog()
+
+                    // Show the phone permission alert dialog.  The permission will be requested when the dialog is closed.
+                    phonePermissionDialogFragment.show(supportFragmentManager, getString(R.string.phone_permission))
+                }
+            } else {  // Show the permission request directly.
+                // Request the read phone state permission.  There is only one permission request in the app, so it has a request code of 0.
+                ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.READ_PHONE_STATE), 0)
+            }
+        }
+    }
+
+    override fun onNavigationItemSelected(menuItem: MenuItem) : Boolean {
+        // Run the commands that correspond to the selected menu item.
+        when (menuItem.itemId) {
+            R.id.settings -> {  // Settings.
+                // Create an intent to load the Settings activity.
+                val settingsIntent = Intent(this, SettingsActivity::class.java)
+
+                // Make it so.
+                startActivity(settingsIntent)
+            }
+
+            R.id.permissions -> {  // Permissions.
+                // Instantiate the permissions dialog fragment.
+                val permissionsDialogFragment = WebViewDialog().type(WebViewDialog.PERMISSIONS)
+
+                // Show the alert dialog.
+                permissionsDialogFragment.show(supportFragmentManager, getString(R.string.permissions))
+            }
+
+            R.id.privacy_policy -> {  // Privacy Policy.
+                // Instantiate the privacy policy dialog fragment.
+                val privacyPolicyDialogFragment = WebViewDialog().type(WebViewDialog.PRIVACY_POLICY)
+
+                // Show the alert dialog.
+                privacyPolicyDialogFragment.show(supportFragmentManager, getString(R.string.privacy_policy))
+            }
+
+            R.id.changelog -> {  // Changelog.
+                // Instantiate the changelog dialog fragment.
+                val changelogDialogFragment = WebViewDialog().type(WebViewDialog.CHANGELOG)
+
+                // Show the alert dialog.
+                changelogDialogFragment.show(supportFragmentManager, getString(R.string.changelog))
+            }
+
+            R.id.licenses -> {  // Licenses.
+                // Instantiate the licenses dialog fragment.
+                val licensesDialogFragment = WebViewDialog().type(WebViewDialog.LICENSES)
+
+                // Show the alert dialog.
+                licensesDialogFragment.show(supportFragmentManager, getString(R.string.licenses))
+            }
+
+            R.id.contributors -> {  // Contributors.
+                // Instantiate the contributors dialog fragment.
+                val contributorsDialogFragment = WebViewDialog().type(WebViewDialog.CONTRIBUTORS)
+
+                // Show the alert dialog.
+                contributorsDialogFragment.show(supportFragmentManager, getString(R.string.contributors))
+            }
+
+            R.id.news -> {  // News.
+                // Create a news URL intent.
+                val newsUrlIntent = Intent(Intent.ACTION_VIEW)
+
+                // Add the URL to the intent.
+                newsUrlIntent.data = Uri.parse("https://www.stoutner.com/category/privacy-cell/")
+
+                // Make it so.
+                startActivity(newsUrlIntent)
+            }
+
+            R.id.roadmap -> {  // Roadmap.
+                // Create a roadmap URL intent.
+                val roadmapUrlIntent = Intent(Intent.ACTION_VIEW)
+
+                // Add the URL to the intent.
+                roadmapUrlIntent.data = Uri.parse("https://www.stoutner.com/category/privacy-cell-roadmap/")
+
+                // Make it so.
+                startActivity(roadmapUrlIntent)
+            }
+
+            R.id.bug_tracker -> {  // Bug tracker.
+                // Create a bug tracker URL intent.
+                val bugTrackerUrlIntent = Intent(Intent.ACTION_VIEW)
+
+                // Add the URL to the intent.
+                bugTrackerUrlIntent.data = Uri.parse("https://redmine.stoutner.com/projects/privacy-cell/issues")
+
+                // Make it so.
+                startActivity(bugTrackerUrlIntent)
+            }
+
+            R.id.forum -> {  // Forum.
+                // Create a forum URL intent.
+                val forumUrlIntent = Intent(Intent.ACTION_VIEW)
+
+                // Add the URL to the intent.
+                forumUrlIntent.data = Uri.parse("https://redmine.stoutner.com/projects/privacy-cell/boards")
+
+                // Make it so.
+                startActivity(forumUrlIntent)
+            }
+
+            R.id.donations -> {  // Donations.
+                // Create a donations URL intent.
+                val donationsUrlIntent = Intent(Intent.ACTION_VIEW)
+
+                // Add the URL to the intent.
+                donationsUrlIntent.data = Uri.parse("https://www.stoutner.com/donations/")
+
+                // Make it so.
+                startActivity(donationsUrlIntent)
+            }
+        }
+
+        // Close the navigation drawer.
+        drawerLayout.closeDrawer(GravityCompat.START)
+
+        // Consume the click.
+        return true
+    }
+
+    override fun onCloseStoragePermissionDialog() {
+        // Request the read phone state permission.  There is only one permission request in the app, so it has a request code of 0.
+        ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.READ_PHONE_STATE), 0)
+    }
+
+    override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray) {
+        // Run the default commands.
+        super.onRequestPermissionsResult(requestCode, permissions, grantResults)
+
+        //Only process the results if they exist (this method is triggered when a dialog is presented the first time for an app, but no grant results are included).
+        if (grantResults.isNotEmpty()) {
+            // Check to see if the read phone state permission was granted.  If the dialog was canceled the grant results will be empty.
+            if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {  // The read phone state permission was granted.
+                // Populate Privacy Cell.
+                populatePrivacyCell()
+            } else {  // The read phone state permission was denied.
+                // Display the phone permission text on the main activity.
+                stingrayTextView.text = getString(R.string.phone_permission_text)
+            }
+        }
+    }
+
+    private fun populatePrivacyCell() {
+        // Listen to changes in the cell network state.
+        telephonyManager.listen(object : PhoneStateListener() {
+            override fun onDisplayInfoChanged(telephonyDisplayInfo: TelephonyDisplayInfo) {
+                // Populate the stingray security information.  <https://source.android.com/devices/tech/connect/acts-5g-testing>
+                if (telephonyDisplayInfo.networkType == TelephonyManager.NETWORK_TYPE_NR) {  // This is a secure 5G NR SA network.
+                    // Populate the image view.
+                    stingrayImageView.setImageDrawable(AppCompatResources.getDrawable(context, R.drawable.secure_5g_nr_sa))
+
+                    // Set the text.
+                    stingrayTextView.text = getString(R.string.secure_from_stingray)
+
+                    // Set the text color.
+                    stingrayTextView.setTextColor(getColor(R.color.blue_text))
+                } else {  // This is not a secure 5G NR SA network.
+                    // Populate the image view.
+                    stingrayImageView.setImageDrawable(AppCompatResources.getDrawable(context, R.drawable.not_secure))
+
+                    // Set the text.
+                    stingrayTextView.text = getString(R.string.not_secure_from_stingray)
+
+                    // Set the text color.
+                    stingrayTextView.setTextColor(getColor(R.color.red_text))
+                }
+
+                // Get the strings that correspond to the network information.
+                val dataNetworkType = getNetworkType(telephonyDisplayInfo.networkType)
+                val additionalNetworkInfo = getAdditionalNetworkInfo(telephonyDisplayInfo.overrideNetworkType)
+
+                // Populate the data network text views.
+                dataNetworkTextView.text = getString(R.string.data_network, dataNetworkType[0])
+                dataNetworkDetailsTextView.text = dataNetworkType[1]
+                additionalNetworkInfoTextView.text = getString(R.string.additional_network_info, additionalNetworkInfo[0])
+                additionalNetworkInfoDetailsTextView.text = additionalNetworkInfo[1]
+
+                // Set the stingray click listener.
+                stingrayLinearLayout.setOnClickListener {
+                    // Instantiate the stingray dialog fragment.
+                    val stingrayDialogFragment = WebViewDialog().type(WebViewDialog.STINGRAY)
+
+                    // Show the alert dialog.
+                    stingrayDialogFragment.show(supportFragmentManager, getString(R.string.stingrays))
+                }
+
+                // Set the data network click listener.
+                dataNetworkLinearLayout.setOnClickListener {
+                    // Instantiate the data network dialog fragment according to the network type.
+                    val dataNetworkDialogFragment = when (telephonyDisplayInfo.networkType) {
+                        TelephonyManager.NETWORK_TYPE_UNKNOWN -> WebViewDialog().type(WebViewDialog.NETWORK_UNKNOWN)
+                        TelephonyManager.NETWORK_TYPE_GPRS -> WebViewDialog().type(WebViewDialog.NETWORK_GPRS)
+                        TelephonyManager.NETWORK_TYPE_EDGE -> WebViewDialog().type(WebViewDialog.NETWORK_EDGE)
+                        TelephonyManager.NETWORK_TYPE_UMTS -> WebViewDialog().type(WebViewDialog.NETWORK_UMTS)
+                        TelephonyManager.NETWORK_TYPE_CDMA -> WebViewDialog().type(WebViewDialog.NETWORK_CDMA)
+                        TelephonyManager.NETWORK_TYPE_EVDO_0 -> WebViewDialog().type(WebViewDialog.NETWORK_EVDO_0)
+                        TelephonyManager.NETWORK_TYPE_EVDO_A -> WebViewDialog().type(WebViewDialog.NETWORK_EVDO_A)
+                        TelephonyManager.NETWORK_TYPE_1xRTT -> WebViewDialog().type(WebViewDialog.NETWORK_1xRTT)
+                        TelephonyManager.NETWORK_TYPE_HSDPA -> WebViewDialog().type(WebViewDialog.NETWORK_HSDPA)
+                        TelephonyManager.NETWORK_TYPE_HSUPA -> WebViewDialog().type(WebViewDialog.NETWORK_HSUPA)
+                        TelephonyManager.NETWORK_TYPE_HSPA -> WebViewDialog().type(WebViewDialog.NETWORK_HSPA)
+                        TelephonyManager.NETWORK_TYPE_IDEN -> WebViewDialog().type(WebViewDialog.NETWORK_IDEN)
+                        TelephonyManager.NETWORK_TYPE_EVDO_B -> WebViewDialog().type(WebViewDialog.NETWORK_EVDO_B)
+                        TelephonyManager.NETWORK_TYPE_LTE -> WebViewDialog().type(WebViewDialog.NETWORK_LTE)
+                        TelephonyManager.NETWORK_TYPE_EHRPD -> WebViewDialog().type(WebViewDialog.NETWORK_EHRPD)
+                        TelephonyManager.NETWORK_TYPE_HSPAP -> WebViewDialog().type(WebViewDialog.NETWORK_HSPAP)
+                        TelephonyManager.NETWORK_TYPE_GSM -> WebViewDialog().type(WebViewDialog.NETWORK_GSM)
+                        TelephonyManager.NETWORK_TYPE_TD_SCDMA -> WebViewDialog().type(WebViewDialog.NETWORK_TD_SCDMA)
+                        TelephonyManager.NETWORK_TYPE_IWLAN -> WebViewDialog().type(WebViewDialog.NETWORK_IWLAN)
+                        TelephonyManager.NETWORK_TYPE_NR -> WebViewDialog().type(WebViewDialog.NETWORK_NR)
+                        else -> WebViewDialog().type(WebViewDialog.NETWORK_UNKNOWN)
+                    }
+
+                    // Show the alert dialog.
+                    dataNetworkDialogFragment.show(supportFragmentManager, getString(R.string.voice_network))
+                }
+
+                // Set the additional network info click listener.
+                additionalNetworkInfoLinearLayout.setOnClickListener {
+                    // Instantiate the initial network info dialog fragment according to the network type.
+                    val additionalNetworkInfoDialogFragment = when (telephonyDisplayInfo.overrideNetworkType) {
+                        TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NONE -> WebViewDialog().type(WebViewDialog.OVERRIDE_NETWORK_NONE)
+                        TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_LTE_CA -> WebViewDialog().type(WebViewDialog.OVERRIDE_NETWORK_LTE_CA)
+                        TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_LTE_ADVANCED_PRO -> WebViewDialog().type(WebViewDialog.OVERRIDE_NETWORK_LTE_ADVANCED_PRO)
+                        TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA -> WebViewDialog().type(WebViewDialog.OVERRIDE_NETWORK_NR_NSA)
+                        TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA_MMWAVE -> WebViewDialog().type(WebViewDialog.OVERRIDE_NETWORK_NR_NSA_MMWAVE)
+                        else -> WebViewDialog().type(WebViewDialog.OVERRIDE_NETWORK_NR_NSA_MMWAVE)
+                    }
+
+                    // Show the alert dialog.
+                    additionalNetworkInfoDialogFragment.show(supportFragmentManager, getString(R.string.voice_network))
+                }
+            }
+
+            override fun onServiceStateChanged(serviceState: ServiceState) {
+                // Get the network registration info for the voice network, which is the second of the three entries (the first appears to be Wi-Fi and the third appears to be the cell data network).
+                val networkRegistrationInfo = serviceState.networkRegistrationInfoList[1]
+
+                // Get the voice network type.
+                val voiceNetworkType = getNetworkType(networkRegistrationInfo.accessNetworkTechnology)
+
+                // Populate the voice network text views.
+                voiceNetworkTextView.text = getString(R.string.voice_network, voiceNetworkType[0])
+                voiceNetworkDetailsTextView.text = voiceNetworkType[1]
+
+                // Set the voice network click listener.
+                voiceNetworkLinearLayout.setOnClickListener {
+                    // Instantiate the voice network dialog fragment according to the network type.
+                    val voiceNetworkDialogFragment = when (networkRegistrationInfo.accessNetworkTechnology) {
+                        TelephonyManager.NETWORK_TYPE_UNKNOWN -> WebViewDialog().type(WebViewDialog.NETWORK_UNKNOWN)
+                        TelephonyManager.NETWORK_TYPE_GPRS -> WebViewDialog().type(WebViewDialog.NETWORK_GPRS)
+                        TelephonyManager.NETWORK_TYPE_EDGE -> WebViewDialog().type(WebViewDialog.NETWORK_EDGE)
+                        TelephonyManager.NETWORK_TYPE_UMTS -> WebViewDialog().type(WebViewDialog.NETWORK_UMTS)
+                        TelephonyManager.NETWORK_TYPE_CDMA -> WebViewDialog().type(WebViewDialog.NETWORK_CDMA)
+                        TelephonyManager.NETWORK_TYPE_EVDO_0 -> WebViewDialog().type(WebViewDialog.NETWORK_EVDO_0)
+                        TelephonyManager.NETWORK_TYPE_EVDO_A -> WebViewDialog().type(WebViewDialog.NETWORK_EVDO_A)
+                        TelephonyManager.NETWORK_TYPE_1xRTT -> WebViewDialog().type(WebViewDialog.NETWORK_1xRTT)
+                        TelephonyManager.NETWORK_TYPE_HSDPA -> WebViewDialog().type(WebViewDialog.NETWORK_HSDPA)
+                        TelephonyManager.NETWORK_TYPE_HSUPA -> WebViewDialog().type(WebViewDialog.NETWORK_HSUPA)
+                        TelephonyManager.NETWORK_TYPE_HSPA -> WebViewDialog().type(WebViewDialog.NETWORK_HSPA)
+                        TelephonyManager.NETWORK_TYPE_IDEN -> WebViewDialog().type(WebViewDialog.NETWORK_IDEN)
+                        TelephonyManager.NETWORK_TYPE_EVDO_B -> WebViewDialog().type(WebViewDialog.NETWORK_EVDO_B)
+                        TelephonyManager.NETWORK_TYPE_LTE -> WebViewDialog().type(WebViewDialog.NETWORK_LTE)
+                        TelephonyManager.NETWORK_TYPE_EHRPD -> WebViewDialog().type(WebViewDialog.NETWORK_EHRPD)
+                        TelephonyManager.NETWORK_TYPE_HSPAP -> WebViewDialog().type(WebViewDialog.NETWORK_HSPAP)
+                        TelephonyManager.NETWORK_TYPE_GSM -> WebViewDialog().type(WebViewDialog.NETWORK_GSM)
+                        TelephonyManager.NETWORK_TYPE_TD_SCDMA -> WebViewDialog().type(WebViewDialog.NETWORK_TD_SCDMA)
+                        TelephonyManager.NETWORK_TYPE_IWLAN -> WebViewDialog().type(WebViewDialog.NETWORK_IWLAN)
+                        TelephonyManager.NETWORK_TYPE_NR -> WebViewDialog().type(WebViewDialog.NETWORK_NR)
+                        else -> WebViewDialog().type(WebViewDialog.NETWORK_UNKNOWN)
+                    }
+
+                    // Show the alert dialog.
+                    voiceNetworkDialogFragment.show(supportFragmentManager, getString(R.string.voice_network))
+                }
+            }
+        }, PhoneStateListener.LISTEN_DISPLAY_INFO_CHANGED or PhoneStateListener.LISTEN_SERVICE_STATE)
+    }
+
+    private fun getNetworkType(networkType: Int) : Array<String> {
+        // Return the string that corresponds to the network type.
+        return when(networkType) {
+            TelephonyManager.NETWORK_TYPE_UNKNOWN -> arrayOf(getString(R.string.unknown), "")
+            TelephonyManager.NETWORK_TYPE_GPRS -> arrayOf(getString(R.string.gprs), getString(R.string.gprs_detail))
+            TelephonyManager.NETWORK_TYPE_EDGE -> arrayOf(getString(R.string.edge), getString(R.string.edge_detail))
+            TelephonyManager.NETWORK_TYPE_UMTS -> arrayOf(getString(R.string.umts), getString(R.string.umts_detail))
+            TelephonyManager.NETWORK_TYPE_CDMA -> arrayOf(getString(R.string.cdma), getString(R.string.cdma_detail))
+            TelephonyManager.NETWORK_TYPE_EVDO_0 -> arrayOf(getString(R.string.evdo_0), getString(R.string.evdo_0_detail))
+            TelephonyManager.NETWORK_TYPE_EVDO_A -> arrayOf(getString(R.string.evdo_a), getString(R.string.evdo_a_detail))
+            TelephonyManager.NETWORK_TYPE_1xRTT -> arrayOf(getString(R.string.rtt), getString(R.string.rtt_detail))
+            TelephonyManager.NETWORK_TYPE_HSDPA -> arrayOf(getString(R.string.hsdpa), getString(R.string.hsdpa_detail))
+            TelephonyManager.NETWORK_TYPE_HSUPA -> arrayOf(getString(R.string.hsupa), getString(R.string.hsupa_detail))
+            TelephonyManager.NETWORK_TYPE_HSPA -> arrayOf(getString(R.string.hspa), getString(R.string.hspa_detail))
+            TelephonyManager.NETWORK_TYPE_IDEN -> arrayOf(getString(R.string.iden), getString(R.string.iden_detail))
+            TelephonyManager.NETWORK_TYPE_EVDO_B -> arrayOf(getString(R.string.evdo_b), getString(R.string.evdo_b_detail))
+            TelephonyManager.NETWORK_TYPE_LTE -> arrayOf(getString(R.string.lte), getString(R.string.lte_detail))
+            TelephonyManager.NETWORK_TYPE_EHRPD -> arrayOf(getString(R.string.ehrpd), getString(R.string.ehrpd_detail))
+            TelephonyManager.NETWORK_TYPE_HSPAP -> arrayOf(getString(R.string.hspap), getString(R.string.hspap_detail))
+            TelephonyManager.NETWORK_TYPE_GSM -> arrayOf(getString(R.string.gsm), getString(R.string.gsm_detail))
+            TelephonyManager.NETWORK_TYPE_TD_SCDMA -> arrayOf(getString(R.string.td_scdma), getString(R.string.td_scdma_detail))
+            TelephonyManager.NETWORK_TYPE_IWLAN -> arrayOf(getString(R.string.iwlan), getString(R.string.iwlan_detail))
+            TelephonyManager.NETWORK_TYPE_NR -> arrayOf(getString(R.string.nr), getString(R.string.nr_detail))
+            else -> arrayOf(getString(R.string.error), "")
+        }
+    }
+
+    private fun getAdditionalNetworkInfo(overrideNetworkType: Int) : Array<String> {
+        // Return the string that corresponds to the override network type.
+        return when(overrideNetworkType) {
+            TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NONE -> arrayOf(getString(R.string.none), "")
+            TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_LTE_CA -> arrayOf(getString(R.string.lte_ca), getString(R.string.lte_ca_detail))
+            TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_LTE_ADVANCED_PRO -> arrayOf(getString(R.string.lte_advanced_pro), getString(R.string.lte_advanced_pro_detail))
+            TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA -> arrayOf(getString(R.string.nr_nsa), getString(R.string.nr_nsa_detail))
+            TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA_MMWAVE -> arrayOf(getString(R.string.nr_nsa_mmwave), getString(R.string.nr_nsa_mmwave_detail))
+            else -> arrayOf(getString(R.string.error), "")
+        }
+    }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/stoutner/privacycell/activities/SettingsActivity.kt b/app/src/main/java/com/stoutner/privacycell/activities/SettingsActivity.kt
new file mode 100644 (file)
index 0000000..279d836
--- /dev/null
@@ -0,0 +1,73 @@
+/*
+ * Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+ *
+ * This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+ *
+ * Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package com.stoutner.privacycell.activities
+
+import android.os.Bundle
+import android.view.MenuItem
+
+import androidx.appcompat.app.AppCompatActivity
+import androidx.appcompat.widget.Toolbar
+import androidx.preference.PreferenceManager
+
+import com.stoutner.privacycell.R
+import com.stoutner.privacycell.fragments.SettingsFragment
+
+class SettingsActivity : AppCompatActivity() {
+    override fun onCreate(savedInstanceState: Bundle?) {
+        // Run the default commands.
+        super.onCreate(savedInstanceState)
+
+        // Get a handle for the shared preferences.
+        val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this)
+
+        // Get the bottom app bar preference.
+        val bottomAppBar = sharedPreferences.getBoolean(getString(R.string.bottom_app_bar_key), false)
+
+        // Set the content view.
+        if (bottomAppBar) {
+            setContentView(R.layout.settings_bottom_appbar)
+        } else {
+            setContentView(R.layout.settings_top_appbar)
+        }
+
+        // Get a handle for the toolbar.
+        val toolbar = findViewById<Toolbar>(R.id.toolbar)
+
+        // Set the support action bar.
+        setSupportActionBar(toolbar)
+
+        // Get a handle for the action bar.
+        val actionBar = supportActionBar!!
+
+        // Display the home arrow on the action bar.
+        actionBar.setDisplayHomeAsUpEnabled(true)
+
+        // Load the preferences fragment.
+        supportFragmentManager.beginTransaction().replace(R.id.preferences_framelayout, SettingsFragment()).commit()
+    }
+
+    override fun onOptionsItemSelected(item: MenuItem): Boolean {
+        // As there is only one option, go back.
+        onBackPressed()
+
+        // Consume the event.
+        return true
+    }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/stoutner/privacycell/fragments/SettingsFragment.kt b/app/src/main/java/com/stoutner/privacycell/fragments/SettingsFragment.kt
new file mode 100644 (file)
index 0000000..0cf6c6f
--- /dev/null
@@ -0,0 +1,122 @@
+/*
+ * Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+ *
+ * This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+ *
+ * Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package com.stoutner.privacycell.fragments
+
+import android.content.Intent
+import android.content.SharedPreferences
+import android.os.Bundle
+import android.os.Handler
+import android.os.Looper
+
+import androidx.preference.Preference
+import androidx.preference.PreferenceFragmentCompat
+
+import com.stoutner.privacycell.R
+
+class SettingsFragment : PreferenceFragmentCompat() {
+    // Declare the class variables.
+    private lateinit var sharedPreferenceChangeListener: SharedPreferences.OnSharedPreferenceChangeListener
+
+    // Declare the class views.
+    private lateinit var bottomAppBarPreference: Preference
+
+    override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
+        // Load the preferences from the XML file.
+        setPreferencesFromResource(R.xml.preferences, rootKey)
+
+        // Get a handle for the shared preferences.
+        val sharedPreferences = preferenceScreen.sharedPreferences
+
+        // Get handles for the preferences.
+        bottomAppBarPreference = findPreference(getString(R.string.bottom_app_bar_key))!!
+
+        // Set the bottom app bar preference icon.
+        if (sharedPreferences.getBoolean(getString(R.string.bottom_app_bar_key), false)) {
+            // Set the enabled icon.
+            bottomAppBarPreference.setIcon(R.drawable.bottom_app_bar_enabled)
+        } else {
+            // Set the disabled icon.
+            bottomAppBarPreference.setIcon(R.drawable.bottom_app_bar_disabled)
+        }
+    }
+
+    // The listener should be unregistered when the app is paused.
+    override fun onPause() {
+        // Run the default commands.
+        super.onPause()
+
+        // Get a handle for the shared preferences.
+        val sharedPreferences = preferenceScreen.sharedPreferences
+
+        // Unregister the shared preference listener.
+        sharedPreferences.unregisterOnSharedPreferenceChangeListener(sharedPreferenceChangeListener)
+    }
+
+    // The listener should be re-registered when the app is resumed.
+    override fun onResume() {
+        // Run the default commands.
+        super.onResume()
+
+        // Get a new shared preference change listener.
+        sharedPreferenceChangeListener = getSharedPreferenceChangeListener()
+
+        // Get a handle for the shared preferences.
+        val sharedPreferences = preferenceScreen.sharedPreferences
+
+        // Re-register the shared preference listener.
+        sharedPreferences.registerOnSharedPreferenceChangeListener(sharedPreferenceChangeListener)
+    }
+
+    private fun getSharedPreferenceChangeListener(): SharedPreferences.OnSharedPreferenceChangeListener {
+        // Return the shared preference change listener.
+        return SharedPreferences.OnSharedPreferenceChangeListener {sharedPreferences, key ->
+            when (key) {
+                "bottom_app_bar" -> {
+                    // Update the icon.
+                    if (sharedPreferences.getBoolean(getString(R.string.bottom_app_bar_key), false)) {
+                        // Set the enabled icon.
+                        bottomAppBarPreference.setIcon(R.drawable.bottom_app_bar_enabled)
+                    } else {
+                        // Set the disabled icon.
+                        bottomAppBarPreference.setIcon(R.drawable.bottom_app_bar_disabled)
+                    }
+
+                    // Create an intent to restart Privacy Cell.
+                    val restartIntent = requireActivity().parentActivityIntent!!
+
+                    // `Intent.FLAG_ACTIVITY_CLEAR_TASK` removes all activities from the stack.  It requires `Intent.FLAG_ACTIVITY_NEW_TASK`.
+                    restartIntent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
+
+                    // Create a handler to restart the activity.
+                    val restartHandler = Handler(Looper.getMainLooper())
+
+                    // Create a runnable to restart the activity.
+                    val restartRunnable = Runnable {
+                        // Restart the activity.
+                        startActivity(restartIntent)
+                    }
+
+                    // Restart the activity after 400 milliseconds, so that the app has enough time to save the change to the preference.
+                    restartHandler.postDelayed(restartRunnable, 400)
+                }
+            }
+        }
+    }
+}
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_app_bar_disabled.xml b/app/src/main/res/drawable/bottom_app_bar_disabled.xml
new file mode 100644 (file)
index 0000000..4aa3d7b
--- /dev/null
@@ -0,0 +1,13 @@
+<!-- This file comes from the Android Material icon set, where it is called `call_to_action_rounded`.  It is released under the Apache License 2.0. -->
+
+<vector
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:height="24dp"
+    android:width="24dp"
+    android:viewportHeight="24"
+    android:viewportWidth="24" >
+
+    <path
+        android:fillColor="@color/icon_disabled"
+        android:pathData="M21,3L3,3c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h18c1.1,0 2,-0.9 2,-2L23,5c0,-1.1 -0.9,-2 -2,-2zM20,19L4,19c-0.55,0 -1,-0.45 -1,-1v-1c0,-0.55 0.45,-1 1,-1h16c0.55,0 1,0.45 1,1v1c0,0.55 -0.45,1 -1,1z" />
+</vector>
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_app_bar_enabled.xml b/app/src/main/res/drawable/bottom_app_bar_enabled.xml
new file mode 100644 (file)
index 0000000..4ccb890
--- /dev/null
@@ -0,0 +1,13 @@
+<!-- This file comes from the Android Material icon set, where it is called `call_to_action_rounded`.  It is released under the Apache License 2.0. -->
+
+<vector
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:height="24dp"
+    android:width="24dp"
+    android:viewportHeight="24"
+    android:viewportWidth="24" >
+
+    <path
+        android:fillColor="@color/icon_enabled"
+        android:pathData="M21,3L3,3c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h18c1.1,0 2,-0.9 2,-2L23,5c0,-1.1 -0.9,-2 -2,-2zM20,19L4,19c-0.55,0 -1,-0.45 -1,-1v-1c0,-0.55 0.45,-1 1,-1h16c0.55,0 1,0.45 1,1v1c0,0.55 -0.45,1 -1,1z" />
+</vector>
\ No newline at end of file
index fb3407315deaf4d25b0c80fb72fce4d839b33d3b..9cb8f8737965b74c364d6e44fcfaff4323b7e157 100644 (file)
@@ -8,6 +8,6 @@
     android:viewportWidth="24">
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M19,8h-1.81c-0.45,-0.78 -1.07,-1.45 -1.82,-1.96l0.93,-0.93c0.39,-0.39 0.39,-1.02 0,-1.41 -0.39,-0.39 -1.02,-0.39 -1.41,0l-1.47,1.47C12.96,5.06 12.49,5 12,5s-0.96,0.06 -1.41,0.17L9.11,3.7c-0.39,-0.39 -1.02,-0.39 -1.41,0 -0.39,0.39 -0.39,1.02 0,1.41l0.92,0.93C7.88,6.55 7.26,7.22 6.81,8L5,8c-0.55,0 -1,0.45 -1,1s0.45,1 1,1h1.09c-0.05,0.33 -0.09,0.66 -0.09,1v1L5,12c-0.55,0 -1,0.45 -1,1s0.45,1 1,1h1v1c0,0.34 0.04,0.67 0.09,1L5,16c-0.55,0 -1,0.45 -1,1s0.45,1 1,1h1.81c1.04,1.79 2.97,3 5.19,3s4.15,-1.21 5.19,-3L19,18c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1h-1.09c0.05,-0.33 0.09,-0.66 0.09,-1v-1h1c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1h-1v-1c0,-0.34 -0.04,-0.67 -0.09,-1L19,10c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1zM13,16h-2c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1h2c0.55,0 1,0.45 1,1s-0.45,1 -1,1zM13,12h-2c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1h2c0.55,0 1,0.45 1,1s-0.45,1 -1,1z" />
 </vector>
\ No newline at end of file
index e22142e67651180412aeb477843c61c52c318372..87666df7de4120430c91bd7f96358535a4636099 100644 (file)
@@ -9,5 +9,6 @@
     android:autoMirrored="true" >
 
     <path
-        android:fillColor="@color/icon" android:pathData="M4,10.5c-0.83,0 -1.5,0.67 -1.5,1.5s0.67,1.5 1.5,1.5 1.5,-0.67 1.5,-1.5 -0.67,-1.5 -1.5,-1.5zM4,4.5c-0.83,0 -1.5,0.67 -1.5,1.5S3.17,7.5 4,7.5 5.5,6.83 5.5,6 4.83,4.5 4,4.5zM4,16.5c-0.83,0 -1.5,0.68 -1.5,1.5s0.68,1.5 1.5,1.5 1.5,-0.68 1.5,-1.5 -0.67,-1.5 -1.5,-1.5zM8,19h12c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1L8,17c-0.55,0 -1,0.45 -1,1s0.45,1 1,1zM8,13h12c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1L8,11c-0.55,0 -1,0.45 -1,1s0.45,1 1,1zM7,6c0,0.55 0.45,1 1,1h12c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1L8,5c-0.55,0 -1,0.45 -1,1z" />
+        android:fillColor="@color/icon_enabled"
+        android:pathData="M4,10.5c-0.83,0 -1.5,0.67 -1.5,1.5s0.67,1.5 1.5,1.5 1.5,-0.67 1.5,-1.5 -0.67,-1.5 -1.5,-1.5zM4,4.5c-0.83,0 -1.5,0.67 -1.5,1.5S3.17,7.5 4,7.5 5.5,6.83 5.5,6 4.83,4.5 4,4.5zM4,16.5c-0.83,0 -1.5,0.68 -1.5,1.5s0.68,1.5 1.5,1.5 1.5,-0.68 1.5,-1.5 -0.67,-1.5 -1.5,-1.5zM8,19h12c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1L8,17c-0.55,0 -1,0.45 -1,1s0.45,1 1,1zM8,13h12c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1L8,11c-0.55,0 -1,0.45 -1,1s0.45,1 1,1zM7,6c0,0.55 0.45,1 1,1h12c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1L8,5c-0.55,0 -1,0.45 -1,1z" />
 </vector>
\ No newline at end of file
index 6ecfc6e389cda7c361d2cbbb85b94b25acc89d55..f61e91eac6dfc9ad2c44ce7dcef3d1826dba2cd3 100644 (file)
@@ -8,6 +8,6 @@
     android:viewportWidth="24" >
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M12,12.75c1.63,0 3.07,0.39 4.24,0.9c1.08,0.48 1.76,1.56 1.76,2.73L18,18H6l0,-1.61c0,-1.18 0.68,-2.26 1.76,-2.73C8.93,13.14 10.37,12.75 12,12.75zM4,13c1.1,0 2,-0.9 2,-2c0,-1.1 -0.9,-2 -2,-2s-2,0.9 -2,2C2,12.1 2.9,13 4,13zM5.13,14.1C4.76,14.04 4.39,14 4,14c-0.99,0 -1.93,0.21 -2.78,0.58C0.48,14.9 0,15.62 0,16.43V18l4.5,0v-1.61C4.5,15.56 4.73,14.78 5.13,14.1zM20,13c1.1,0 2,-0.9 2,-2c0,-1.1 -0.9,-2 -2,-2s-2,0.9 -2,2C18,12.1 18.9,13 20,13zM24,16.43c0,-0.81 -0.48,-1.53 -1.22,-1.85C21.93,14.21 20.99,14 20,14c-0.39,0 -0.76,0.04 -1.13,0.1c0.4,0.68 0.63,1.46 0.63,2.29V18l4.5,0V16.43zM12,6c1.66,0 3,1.34 3,3c0,1.66 -1.34,3 -3,3s-3,-1.34 -3,-3C9,7.34 10.34,6 12,6z" />
 </vector>
\ No newline at end of file
index b0f7e2990a3e73e2cfa115dc9061193851eb1c11..c568e2449bbee5ff7d8dd44b10d043c993b96b05 100644 (file)
@@ -9,6 +9,6 @@
     android:viewportWidth="24" >
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M23,8v10c0,1.1 -0.9,2 -2,2H5c-0.55,0 -1,-0.45 -1,-1c0,-0.55 0.45,-1 1,-1h16V8c0,-0.55 0.45,-1 1,-1S23,7.45 23,8zM4,16c-1.66,0 -3,-1.34 -3,-3V7c0,-1.66 1.34,-3 3,-3h12c1.66,0 3,1.34 3,3v7c0,1.1 -0.9,2 -2,2H4zM7,10c0,1.66 1.34,3 3,3s3,-1.34 3,-3s-1.34,-3 -3,-3S7,8.34 7,10z" />
 </vector>
\ No newline at end of file
index 25e4421cadfcee712e4021d20a74b5218a667dbd..bc94ff3f32ff80419381fd28186295c4475620a8 100644 (file)
@@ -9,6 +9,6 @@
     android:autoMirrored="true" >
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M20,6h-1v8c0,0.55 -0.45,1 -1,1L6,15v1c0,1.1 0.9,2 2,2h10l4,4L22,8c0,-1.1 -0.9,-2 -2,-2zM17,11L17,4c0,-1.1 -0.9,-2 -2,-2L4,2c-1.1,0 -2,0.9 -2,2v13l4,-4h9c1.1,0 2,-0.9 2,-2z" />
 </vector>
\ No newline at end of file
index eb83eed600b2ad6d43fccd073cf75c464797ca8d..cd03a6143a253e0065579f27dcd42ba5cef29ff7 100644 (file)
@@ -9,6 +9,6 @@
     android:autoMirrored="true" >
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M14.17,5L19,9.83V19H5V5L14.17,5L14.17,5M14.17,3H5C3.9,3 3,3.9 3,5v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2V9.83c0,-0.53 -0.21,-1.04 -0.59,-1.41l-4.83,-4.83C15.21,3.21 14.7,3 14.17,3L14.17,3zM7,15h10v2H7V15zM7,11h10v2H7V11zM7,7h7v2H7V7z" />
 </vector>
\ No newline at end of file
index 7c2e1e943f961c73fd9384bcc438cd6bfd1773d1..cefd2fda8fd7a2bb8c557c81bf9c3b8f4de5ae5c 100644 (file)
@@ -9,6 +9,6 @@
     android:autoMirrored="true" >
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M21,4L3,4c-1.1,0 -2,0.9 -2,2v13c0,1.1 0.9,2 2,2h18c1.1,0 2,-0.9 2,-2L23,6c0,-1.1 -0.9,-2 -2,-2zM21,18c0,0.55 -0.45,1 -1,1h-8L12,6h8c0.55,0 1,0.45 1,1v11zM19.25,9.5h-5.5c-0.41,0 -0.75,0.34 -0.75,0.75s0.34,0.75 0.75,0.75h5.5c0.41,0 0.75,-0.34 0.75,-0.75s-0.34,-0.75 -0.75,-0.75zM19.25,12h-5.5c-0.41,0 -0.75,0.34 -0.75,0.75s0.34,0.75 0.75,0.75h5.5c0.41,0 0.75,-0.34 0.75,-0.75s-0.34,-0.75 -0.75,-0.75zM19.25,14.5h-5.5c-0.41,0 -0.75,0.34 -0.75,0.75s0.34,0.75 0.75,0.75h5.5c0.41,0 0.75,-0.34 0.75,-0.75s-0.34,-0.75 -0.75,-0.75z" />
 </vector>
\ No newline at end of file
index 593118bba610e25e9061dcdf72533df8f721774d..3578a4d3ec4acd702e397a63442b9b529d81ab68 100644 (file)
@@ -8,22 +8,22 @@
     android:viewportWidth="24" >
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M20,3H4C2.9,3 2,3.9 2,5v14c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V5C22,3.9 21.1,3 20,3zM20,19H4V5h16V19z" />
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M19.41,10.42l-1.42,-1.42l-3.17,3.17l-1.41,-1.42l-1.41,1.41l2.82,2.84z" />
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M5,7h5v2h-5z" />
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M5,11h5v2h-5z" />
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M5,15h5v2h-5z" />
 </vector>
index df5bc9698a72bb05ace909a6b47b770c4fb21f04..4a43a3093e7b369acefc4d08e06ca34723746504 100644 (file)
@@ -7,6 +7,6 @@
     android:viewportWidth="24">
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M16,1L8,1C6.34,1 5,2.34 5,4v16c0,1.66 1.34,3 3,3h8c1.66,0 3,-1.34 3,-3L19,4c0,-1.66 -1.34,-3 -3,-3zM14,21h-4v-1h4v1zM17.25,18L6.75,18L6.75,4h10.5v14z" />
 </vector>
index c2ce440c91633f9a3b57f53ebe4fe6c38673f4d0..1e0b7ad2e8ec6d277fd1446e0666d09f0d6f59e3 100644 (file)
@@ -5,13 +5,13 @@
     android:height="24dp"
     android:width="24dp"
     android:viewportHeight="24"
-    android:viewportWidth="24">
+    android:viewportWidth="24" >
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M21,5l-9,-4L3,5v6c0,5.55 3.84,10.74 9,12c2.3,-0.56 4.33,-1.9 5.88,-3.71l-3.12,-3.12c-1.94,1.29 -4.58,1.07 -6.29,-0.64c-1.95,-1.95 -1.95,-5.12 0,-7.07c1.95,-1.95 5.12,-1.95 7.07,0c1.71,1.71 1.92,4.35 0.64,6.29l2.9,2.9C20.29,15.69 21,13.38 21,11V5z" />
 
     <path
-          android:fillColor="@color/icon"
+          android:fillColor="@color/icon_enabled"
           android:pathData="M12,12m-3,0a3,3 0,1 1,6 0a3,3 0,1 1,-6 0" />
 </vector>
\ No newline at end of file
index 2eba77158f2b9300aa29cd8dd79c250ddf4e65fc..e0075d5f66b479bae2a5e1eb2a5dbb8ac41c8fc6 100644 (file)
@@ -8,6 +8,6 @@
     android:viewportWidth="24" >
 
     <path
-        android:fillColor="@color/icon"
+        android:fillColor="@color/icon_enabled"
         android:pathData="M14.65,4.98l-5,-1.75c-0.42,-0.15 -0.88,-0.15 -1.3,-0.01L4.36,4.56C3.55,4.84 3,5.6 3,6.46v11.85c0,1.41 1.41,2.37 2.72,1.86l2.93,-1.14c0.22,-0.09 0.47,-0.09 0.69,-0.01l5,1.75c0.42,0.15 0.88,0.15 1.3,0.01l3.99,-1.34c0.81,-0.27 1.36,-1.04 1.36,-1.9V5.69c0,-1.41 -1.41,-2.37 -2.72,-1.86l-2.93,1.14c-0.22,0.08 -0.46,0.09 -0.69,0.01zM15,18.89l-6,-2.11V5.11l6,2.11v11.67z" />
 </vector>
\ No newline at end of file
diff --git a/app/src/main/res/drawable/settings.xml b/app/src/main/res/drawable/settings.xml
new file mode 100644 (file)
index 0000000..bd84139
--- /dev/null
@@ -0,0 +1,13 @@
+<!-- This file comes from the Android Material icon set, where it is called `settings_rounded`.  It is released under the Apache License 2.0. -->
+
+<vector
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:height="24dp"
+    android:width="24dp"
+    android:viewportHeight="24"
+    android:viewportWidth="24" >
+
+    <path
+        android:fillColor="@color/icon_enabled"
+        android:pathData="M19.43,12.98c0.04,-0.32 0.07,-0.64 0.07,-0.98s-0.03,-0.66 -0.07,-0.98l2.11,-1.65c0.19,-0.15 0.24,-0.42 0.12,-0.64l-2,-3.46c-0.12,-0.22 -0.39,-0.3 -0.61,-0.22l-2.49,1c-0.52,-0.4 -1.08,-0.73 -1.69,-0.98l-0.38,-2.65C14.46,2.18 14.25,2 14,2h-4c-0.25,0 -0.46,0.18 -0.49,0.42l-0.38,2.65c-0.61,0.25 -1.17,0.59 -1.69,0.98l-2.49,-1c-0.23,-0.09 -0.49,0 -0.61,0.22l-2,3.46c-0.13,0.22 -0.07,0.49 0.12,0.64l2.11,1.65c-0.04,0.32 -0.07,0.65 -0.07,0.98s0.03,0.66 0.07,0.98l-2.11,1.65c-0.19,0.15 -0.24,0.42 -0.12,0.64l2,3.46c0.12,0.22 0.39,0.3 0.61,0.22l2.49,-1c0.52,0.4 1.08,0.73 1.69,0.98l0.38,2.65c0.03,0.24 0.24,0.42 0.49,0.42h4c0.25,0 0.46,-0.18 0.49,-0.42l0.38,-2.65c0.61,-0.25 1.17,-0.59 1.69,-0.98l2.49,1c0.23,0.09 0.49,0 0.61,-0.22l2,-3.46c0.12,-0.22 0.07,-0.49 -0.12,-0.64l-2.11,-1.65zM12,15.5c-1.93,0 -3.5,-1.57 -3.5,-3.5s1.57,-3.5 3.5,-3.5 3.5,1.57 3.5,3.5 -1.57,3.5 -3.5,3.5z" />
+</vector>
\ No newline at end of file
diff --git a/app/src/main/res/layout/privacy_cell_bottom_appbar.xml b/app/src/main/res/layout/privacy_cell_bottom_appbar.xml
new file mode 100644 (file)
index 0000000..af8fd57
--- /dev/null
@@ -0,0 +1,188 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<androidx.drawerlayout.widget.DrawerLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:id="@+id/drawerlayout"
+    android:layout_height="match_parent"
+    android:layout_width="match_parent">
+
+    <androidx.coordinatorlayout.widget.CoordinatorLayout
+        android:layout_height="match_parent"
+        android:layout_width="match_parent" >
+
+        <!-- The linear layout with `orientation="vertical"` moves the app bar below the main content below the main content. -->
+        <LinearLayout
+            android:layout_height="match_parent"
+            android:layout_width="match_parent"
+            android:orientation="vertical" >
+
+            <!-- The main content is wrapped in a scroll view. -->
+            <ScrollView
+                android:layout_height="0dp"
+                android:layout_width="match_parent"
+                android:layout_weight="1" >
+
+                <LinearLayout
+                    android:layout_height="wrap_content"
+                    android:layout_width="match_parent"
+                    android:orientation="vertical"
+                    android:padding="15dp" >
+
+                    <!-- Stingray. -->
+                    <LinearLayout
+                        android:id="@+id/stingray_linearlayout"
+                        android:layout_height="wrap_content"
+                        android:layout_width="wrap_content"
+                        android:layout_gravity="center_horizontal"
+                        android:orientation="vertical"
+                        tools:ignore="UseCompoundDrawables" >
+
+                        <ImageView
+                            android:id="@+id/stingray_imageview"
+                            android:layout_width="wrap_content"
+                            android:layout_height="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            tools:ignore="ContentDescription" />
+
+                        <!-- The text color primary is only displayed if the read phone state permission is not granted.
+                            The default text is replaced if the permission is not granted or the device is connected to a cell phone network. -->
+                        <TextView
+                            android:id="@+id/stingray_textview"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:layout_marginTop="10dp"
+                            android:textColor="?android:textColorPrimary"
+                            android:textSize="20sp"
+                            android:textStyle="bold"
+                            android:text="@string/not_connected" />
+                    </LinearLayout>
+
+                    <!-- Voice network. -->
+                    <LinearLayout
+                        android:id="@+id/voice_network_linearlayout"
+                        android:layout_height="wrap_content"
+                        android:layout_width="wrap_content"
+                        android:layout_gravity="center_horizontal"
+                        android:orientation="vertical" >
+
+                        <TextView
+                            android:id="@+id/voice_network"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:layout_marginTop="30dp"
+                            android:textColor="@color/blue_text"
+                            android:textSize="18sp"
+                            android:textStyle="bold" />
+
+                        <TextView
+                            android:id="@+id/voice_network_details"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:layout_marginBottom="10dp" />
+                    </LinearLayout>
+
+                    <!-- Data network. -->
+                    <LinearLayout
+                        android:id="@+id/data_network_linearlayout"
+                        android:layout_height="wrap_content"
+                        android:layout_width="wrap_content"
+                        android:layout_gravity="center_horizontal"
+                        android:orientation="vertical" >
+
+                        <TextView
+                            android:id="@+id/data_network"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:textColor="@color/blue_text"
+                            android:textSize="18sp"
+                            android:textStyle="bold" />
+
+                        <TextView
+                            android:id="@+id/data_network_details"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:layout_marginBottom="10dp" />
+                    </LinearLayout>
+
+                    <!-- Additional network info. -->
+                    <LinearLayout
+                        android:id="@+id/additional_network_info_linearlayout"
+                        android:layout_height="wrap_content"
+                        android:layout_width="wrap_content"
+                        android:layout_gravity="center_horizontal"
+                        android:orientation="vertical" >
+
+                        <TextView
+                            android:id="@+id/additional_network_info"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:textColor="@color/blue_text"
+                            android:textSize="18sp"
+                            android:textStyle="bold" />
+
+                        <TextView
+                            android:id="@+id/additional_network_info_details"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center" />
+                    </LinearLayout>
+                </LinearLayout>
+            </ScrollView>
+
+            <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
+            <com.google.android.material.appbar.AppBarLayout
+                android:layout_height="wrap_content"
+                android:layout_width="match_parent"
+                android:background="?android:attr/colorBackground"
+                android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+
+                <androidx.appcompat.widget.Toolbar
+                    android:id="@+id/toolbar"
+                    android:layout_height="wrap_content"
+                    android:layout_width="match_parent" />
+            </com.google.android.material.appbar.AppBarLayout>
+        </LinearLayout>
+    </androidx.coordinatorlayout.widget.CoordinatorLayout>
+
+    <!-- The navigation drawer. -->
+    <com.google.android.material.navigation.NavigationView
+        android:id="@+id/navigationview"
+        android:layout_height="match_parent"
+        android:layout_width="wrap_content"
+        android:layout_gravity="start"
+        app:menu="@menu/navigation_menu_bottom_appbar"
+        app:itemIconTint="@color/icon_enabled" />
+</androidx.drawerlayout.widget.DrawerLayout>
\ No newline at end of file
diff --git a/app/src/main/res/layout/privacy_cell_drawerlayout.xml b/app/src/main/res/layout/privacy_cell_drawerlayout.xml
deleted file mode 100644 (file)
index 24fa4a5..0000000
+++ /dev/null
@@ -1,187 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!--
-  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
-
-  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
-
-  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
-
-<androidx.drawerlayout.widget.DrawerLayout
-    xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:tools="http://schemas.android.com/tools"
-    xmlns:app="http://schemas.android.com/apk/res-auto"
-    android:id="@+id/drawerlayout"
-    android:layout_height="match_parent"
-    android:layout_width="match_parent">
-
-    <androidx.coordinatorlayout.widget.CoordinatorLayout
-        android:layout_height="match_parent"
-        android:layout_width="match_parent" >
-
-        <!-- The linear layout with `orientation="vertical"` moves the main content below the app bar layout. -->
-        <LinearLayout
-            android:layout_height="match_parent"
-            android:layout_width="match_parent"
-            android:orientation="vertical" >
-
-            <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
-            <com.google.android.material.appbar.AppBarLayout
-                android:layout_height="wrap_content"
-                android:layout_width="match_parent"
-                android:background="?android:attr/colorBackground"
-                android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
-
-                <androidx.appcompat.widget.Toolbar
-                    android:id="@+id/toolbar"
-                    android:layout_height="wrap_content"
-                    android:layout_width="match_parent" />
-            </com.google.android.material.appbar.AppBarLayout>
-
-            <!-- The main content is wrapped in a scroll view. -->
-            <ScrollView
-                android:layout_height="match_parent"
-                android:layout_width="match_parent" >
-
-                <LinearLayout
-                    android:layout_height="wrap_content"
-                    android:layout_width="match_parent"
-                    android:orientation="vertical"
-                    android:padding="15dp" >
-
-                    <!-- Stingray. -->
-                    <LinearLayout
-                        android:id="@+id/stingray_linearlayout"
-                        android:layout_height="wrap_content"
-                        android:layout_width="wrap_content"
-                        android:layout_gravity="center_horizontal"
-                        android:orientation="vertical"
-                        tools:ignore="UseCompoundDrawables" >
-
-                        <ImageView
-                            android:id="@+id/stingray_imageview"
-                            android:layout_width="wrap_content"
-                            android:layout_height="wrap_content"
-                            android:layout_gravity="center_horizontal"
-                            tools:ignore="ContentDescription" />
-
-                        <!-- The text color primary is only displayed if the read phone state permission is not granted.
-                            The default text is replaced if the permission is not granted or the device is connected to a cell phone network. -->
-                        <TextView
-                            android:id="@+id/stingray_textview"
-                            android:layout_height="wrap_content"
-                            android:layout_width="wrap_content"
-                            android:layout_gravity="center_horizontal"
-                            android:textAlignment="center"
-                            android:layout_marginTop="10dp"
-                            android:textColor="?android:textColorPrimary"
-                            android:textSize="20sp"
-                            android:textStyle="bold"
-                            android:text="@string/not_connected" />
-                    </LinearLayout>
-
-                    <!-- Voice network. -->
-                    <LinearLayout
-                        android:id="@+id/voice_network_linearlayout"
-                        android:layout_height="wrap_content"
-                        android:layout_width="wrap_content"
-                        android:layout_gravity="center_horizontal"
-                        android:orientation="vertical" >
-
-                        <TextView
-                            android:id="@+id/voice_network"
-                            android:layout_height="wrap_content"
-                            android:layout_width="wrap_content"
-                            android:layout_gravity="center_horizontal"
-                            android:textAlignment="center"
-                            android:layout_marginTop="30dp"
-                            android:textColor="@color/blue_text"
-                            android:textSize="18sp"
-                            android:textStyle="bold" />
-
-                        <TextView
-                            android:id="@+id/voice_network_details"
-                            android:layout_height="wrap_content"
-                            android:layout_width="wrap_content"
-                            android:layout_gravity="center_horizontal"
-                            android:textAlignment="center"
-                            android:layout_marginBottom="10dp" />
-                    </LinearLayout>
-
-                    <!-- Data network. -->
-                    <LinearLayout
-                        android:id="@+id/data_network_linearlayout"
-                        android:layout_height="wrap_content"
-                        android:layout_width="wrap_content"
-                        android:layout_gravity="center_horizontal"
-                        android:orientation="vertical" >
-
-                        <TextView
-                            android:id="@+id/data_network"
-                            android:layout_height="wrap_content"
-                            android:layout_width="wrap_content"
-                            android:layout_gravity="center_horizontal"
-                            android:textAlignment="center"
-                            android:textColor="@color/blue_text"
-                            android:textSize="18sp"
-                            android:textStyle="bold" />
-
-                        <TextView
-                            android:id="@+id/data_network_details"
-                            android:layout_height="wrap_content"
-                            android:layout_width="wrap_content"
-                            android:layout_gravity="center_horizontal"
-                            android:textAlignment="center"
-                            android:layout_marginBottom="10dp" />
-                    </LinearLayout>
-
-                    <!-- Additional network info. -->
-                    <LinearLayout
-                        android:id="@+id/additional_network_info_linearlayout"
-                        android:layout_height="wrap_content"
-                        android:layout_width="wrap_content"
-                        android:layout_gravity="center_horizontal"
-                        android:orientation="vertical" >
-
-                        <TextView
-                            android:id="@+id/additional_network_info"
-                            android:layout_height="wrap_content"
-                            android:layout_width="wrap_content"
-                            android:layout_gravity="center_horizontal"
-                            android:textAlignment="center"
-                            android:textColor="@color/blue_text"
-                            android:textSize="18sp"
-                            android:textStyle="bold" />
-
-                        <TextView
-                            android:id="@+id/additional_network_info_details"
-                            android:layout_height="wrap_content"
-                            android:layout_width="wrap_content"
-                            android:layout_gravity="center_horizontal"
-                            android:textAlignment="center" />
-                    </LinearLayout>
-                </LinearLayout>
-            </ScrollView>
-        </LinearLayout>
-    </androidx.coordinatorlayout.widget.CoordinatorLayout>
-
-    <!-- The navigation drawer. -->
-    <com.google.android.material.navigation.NavigationView
-        android:id="@+id/navigationview"
-        android:layout_height="match_parent"
-        android:layout_width="wrap_content"
-        android:layout_gravity="start"
-        app:menu="@menu/navigation_menu_top_appbar"
-        app:itemIconTint="@color/icon" />
-</androidx.drawerlayout.widget.DrawerLayout>
\ No newline at end of file
diff --git a/app/src/main/res/layout/privacy_cell_top_appbar.xml b/app/src/main/res/layout/privacy_cell_top_appbar.xml
new file mode 100644 (file)
index 0000000..a85f3a3
--- /dev/null
@@ -0,0 +1,187 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<androidx.drawerlayout.widget.DrawerLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:id="@+id/drawerlayout"
+    android:layout_height="match_parent"
+    android:layout_width="match_parent">
+
+    <androidx.coordinatorlayout.widget.CoordinatorLayout
+        android:layout_height="match_parent"
+        android:layout_width="match_parent" >
+
+        <!-- The linear layout with `orientation="vertical"` moves the main content below the app bar layout. -->
+        <LinearLayout
+            android:layout_height="match_parent"
+            android:layout_width="match_parent"
+            android:orientation="vertical" >
+
+            <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
+            <com.google.android.material.appbar.AppBarLayout
+                android:layout_height="wrap_content"
+                android:layout_width="match_parent"
+                android:background="?android:attr/colorBackground"
+                android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+
+                <androidx.appcompat.widget.Toolbar
+                    android:id="@+id/toolbar"
+                    android:layout_height="wrap_content"
+                    android:layout_width="match_parent" />
+            </com.google.android.material.appbar.AppBarLayout>
+
+            <!-- The main content is wrapped in a scroll view. -->
+            <ScrollView
+                android:layout_height="match_parent"
+                android:layout_width="match_parent" >
+
+                <LinearLayout
+                    android:layout_height="wrap_content"
+                    android:layout_width="match_parent"
+                    android:orientation="vertical"
+                    android:padding="15dp" >
+
+                    <!-- Stingray. -->
+                    <LinearLayout
+                        android:id="@+id/stingray_linearlayout"
+                        android:layout_height="wrap_content"
+                        android:layout_width="wrap_content"
+                        android:layout_gravity="center_horizontal"
+                        android:orientation="vertical"
+                        tools:ignore="UseCompoundDrawables" >
+
+                        <ImageView
+                            android:id="@+id/stingray_imageview"
+                            android:layout_width="wrap_content"
+                            android:layout_height="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            tools:ignore="ContentDescription" />
+
+                        <!-- The text color primary is only displayed if the read phone state permission is not granted.
+                            The default text is replaced if the permission is not granted or the device is connected to a cell phone network. -->
+                        <TextView
+                            android:id="@+id/stingray_textview"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:layout_marginTop="10dp"
+                            android:textColor="?android:textColorPrimary"
+                            android:textSize="20sp"
+                            android:textStyle="bold"
+                            android:text="@string/not_connected" />
+                    </LinearLayout>
+
+                    <!-- Voice network. -->
+                    <LinearLayout
+                        android:id="@+id/voice_network_linearlayout"
+                        android:layout_height="wrap_content"
+                        android:layout_width="wrap_content"
+                        android:layout_gravity="center_horizontal"
+                        android:orientation="vertical" >
+
+                        <TextView
+                            android:id="@+id/voice_network"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:layout_marginTop="30dp"
+                            android:textColor="@color/blue_text"
+                            android:textSize="18sp"
+                            android:textStyle="bold" />
+
+                        <TextView
+                            android:id="@+id/voice_network_details"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:layout_marginBottom="10dp" />
+                    </LinearLayout>
+
+                    <!-- Data network. -->
+                    <LinearLayout
+                        android:id="@+id/data_network_linearlayout"
+                        android:layout_height="wrap_content"
+                        android:layout_width="wrap_content"
+                        android:layout_gravity="center_horizontal"
+                        android:orientation="vertical" >
+
+                        <TextView
+                            android:id="@+id/data_network"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:textColor="@color/blue_text"
+                            android:textSize="18sp"
+                            android:textStyle="bold" />
+
+                        <TextView
+                            android:id="@+id/data_network_details"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:layout_marginBottom="10dp" />
+                    </LinearLayout>
+
+                    <!-- Additional network info. -->
+                    <LinearLayout
+                        android:id="@+id/additional_network_info_linearlayout"
+                        android:layout_height="wrap_content"
+                        android:layout_width="wrap_content"
+                        android:layout_gravity="center_horizontal"
+                        android:orientation="vertical" >
+
+                        <TextView
+                            android:id="@+id/additional_network_info"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:textColor="@color/blue_text"
+                            android:textSize="18sp"
+                            android:textStyle="bold" />
+
+                        <TextView
+                            android:id="@+id/additional_network_info_details"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center" />
+                    </LinearLayout>
+                </LinearLayout>
+            </ScrollView>
+        </LinearLayout>
+    </androidx.coordinatorlayout.widget.CoordinatorLayout>
+
+    <!-- The navigation drawer. -->
+    <com.google.android.material.navigation.NavigationView
+        android:id="@+id/navigationview"
+        android:layout_height="match_parent"
+        android:layout_width="wrap_content"
+        android:layout_gravity="start"
+        app:menu="@menu/navigation_menu_top_appbar"
+        app:itemIconTint="@color/icon_enabled" />
+</androidx.drawerlayout.widget.DrawerLayout>
\ No newline at end of file
diff --git a/app/src/main/res/layout/settings_bottom_appbar.xml b/app/src/main/res/layout/settings_bottom_appbar.xml
new file mode 100644 (file)
index 0000000..8b872ff
--- /dev/null
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<androidx.coordinatorlayout.widget.CoordinatorLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_height="match_parent"
+    android:layout_width="match_parent" >
+
+    <!-- The linear layout with `orientation="vertical"` moves the app bar layout below the main content. -->
+    <LinearLayout
+        android:layout_height="match_parent"
+        android:layout_width="match_parent"
+        android:orientation="vertical" >
+
+        <!-- Preferences FrameLayout. -->
+        <FrameLayout
+            android:id="@+id/preferences_framelayout"
+            android:layout_height="0dp"
+            android:layout_width="match_parent"
+            android:layout_weight="1"/>
+
+
+        <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
+        <com.google.android.material.appbar.AppBarLayout
+            android:layout_height="wrap_content"
+            android:layout_width="match_parent"
+            android:background="?android:attr/colorBackground"
+            android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+
+            <androidx.appcompat.widget.Toolbar
+                android:id="@+id/toolbar"
+                android:layout_height="wrap_content"
+                android:layout_width="match_parent" />
+        </com.google.android.material.appbar.AppBarLayout>
+    </LinearLayout>
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file
diff --git a/app/src/main/res/layout/settings_top_appbar.xml b/app/src/main/res/layout/settings_top_appbar.xml
new file mode 100644 (file)
index 0000000..1ed0797
--- /dev/null
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<androidx.coordinatorlayout.widget.CoordinatorLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_height="match_parent"
+    android:layout_width="match_parent" >
+
+    <!-- The linear layout with `orientation="vertical"` moves the main content below the app bar layout. -->
+    <LinearLayout
+        android:layout_height="match_parent"
+        android:layout_width="match_parent"
+        android:orientation="vertical" >
+
+        <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
+        <com.google.android.material.appbar.AppBarLayout
+            android:layout_height="wrap_content"
+            android:layout_width="match_parent"
+            android:background="?android:attr/colorBackground"
+            android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+
+            <androidx.appcompat.widget.Toolbar
+                android:id="@+id/toolbar"
+                android:layout_height="wrap_content"
+                android:layout_width="match_parent" />
+        </com.google.android.material.appbar.AppBarLayout>
+
+        <!-- Preferences FrameLayout. -->
+        <FrameLayout
+            android:id="@+id/preferences_framelayout"
+            android:layout_height="match_parent"
+            android:layout_width="match_parent" />
+    </LinearLayout>
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file
diff --git a/app/src/main/res/menu/navigation_menu_bottom_appbar.xml b/app/src/main/res/menu/navigation_menu_bottom_appbar.xml
new file mode 100644 (file)
index 0000000..cdbf1d8
--- /dev/null
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+    <item
+        android:id="@+id/donations"
+        android:title="@string/donations"
+        android:icon="@drawable/donations"
+        android:orderInCategory="10" />
+
+    <!-- If a group has an id, a line is drawn above it in the navigation view. -->
+    <group android:id="@+id/links" >
+        <item
+            android:id="@+id/forum"
+            android:title="@string/forum"
+            android:icon="@drawable/forum"
+            android:orderInCategory="20" />
+
+        <item
+            android:id="@+id/bug_tracker"
+            android:title="@string/bug_tracker"
+            android:icon="@drawable/bug_tracker"
+            android:orderInCategory="30" />
+
+        <item
+            android:id="@+id/roadmap"
+            android:title="@string/roadmap"
+            android:icon="@drawable/roadmap"
+            android:orderInCategory="40" />
+
+        <item
+            android:id="@+id/news"
+            android:title="@string/news"
+            android:icon="@drawable/news"
+            android:orderInCategory="50" />
+    </group>
+
+    <!-- If a group has an id, a line is drawn above it in the navigation view. -->
+    <group android:id="@+id/dialogs" >
+        <item
+            android:id="@+id/contributors"
+            android:title="@string/contributors"
+            android:icon="@drawable/contributors"
+            android:orderInCategory="60" />
+
+        <item
+            android:id="@+id/licenses"
+            android:title="@string/licenses"
+            android:icon="@drawable/licenses"
+            android:orderInCategory="70" />
+
+        <item
+            android:id="@+id/changelog"
+            android:title="@string/changelog"
+            android:icon="@drawable/changelog"
+            android:orderInCategory="80" />
+
+        <item
+            android:id="@+id/privacy_policy"
+            android:title="@string/privacy_policy"
+            android:icon="@drawable/privacy_policy"
+            android:orderInCategory="90" />
+
+        <item
+            android:id="@+id/permissions"
+            android:title="@string/permissions"
+            android:icon="@drawable/permissions"
+            android:orderInCategory="100" />
+    </group>
+
+    <!-- If a group has an id, a line is drawn above it in the navigation view. -->
+    <group android:id="@+id/settings_group" >
+        <item
+            android:id="@+id/settings"
+            android:title="@string/settings"
+            android:icon="@drawable/settings"
+            android:orderInCategory="110" />
+    </group>
+</menu>
\ No newline at end of file
index 42888bfa5ed8602079b9c01c506d3177c0657b66..7b18f981e40e269550e2c413e442842d52239f31 100644 (file)
 
 <menu xmlns:android="http://schemas.android.com/apk/res/android">
     <item
-        android:id="@+id/permissions"
-        android:title="@string/permissions"
-        android:icon="@drawable/permissions"
+        android:id="@+id/settings"
+        android:title="@string/settings"
+        android:icon="@drawable/settings"
         android:orderInCategory="10" />
 
-    <item
-        android:id="@+id/privacy_policy"
-        android:title="@string/privacy_policy"
-        android:icon="@drawable/privacy_policy"
-        android:orderInCategory="20" />
+    <!-- If a group has an id, a line is drawn above it in the navigation view. -->
+    <group android:id="@+id/dialogs" >
+        <item
+            android:id="@+id/permissions"
+            android:title="@string/permissions"
+            android:icon="@drawable/permissions"
+            android:orderInCategory="20" />
 
-    <item
-        android:id="@+id/changelog"
-        android:title="@string/changelog"
-        android:icon="@drawable/changelog"
-        android:orderInCategory="30" />
+        <item
+            android:id="@+id/privacy_policy"
+            android:title="@string/privacy_policy"
+            android:icon="@drawable/privacy_policy"
+            android:orderInCategory="30" />
 
-    <item
-        android:id="@+id/licenses"
-        android:title="@string/licenses"
-        android:icon="@drawable/licenses"
-        android:orderInCategory="40" />
+        <item
+            android:id="@+id/changelog"
+            android:title="@string/changelog"
+            android:icon="@drawable/changelog"
+            android:orderInCategory="40" />
 
-    <item
-        android:id="@+id/contributors"
-        android:title="@string/contributors"
-        android:icon="@drawable/contributors"
-        android:orderInCategory="50" />
+        <item
+            android:id="@+id/licenses"
+            android:title="@string/licenses"
+            android:icon="@drawable/licenses"
+            android:orderInCategory="50" />
+
+        <item
+            android:id="@+id/contributors"
+            android:title="@string/contributors"
+            android:icon="@drawable/contributors"
+            android:orderInCategory="60" />
+    </group>
 
     <!-- If a group has an id, a line is drawn above it in the navigation view. -->
     <group android:id="@+id/links" >
             android:id="@+id/news"
             android:title="@string/news"
             android:icon="@drawable/news"
-            android:orderInCategory="60" />
+            android:orderInCategory="70" />
 
         <item
             android:id="@+id/roadmap"
             android:title="@string/roadmap"
             android:icon="@drawable/roadmap"
-            android:orderInCategory="70" />
+            android:orderInCategory="80" />
 
         <item
             android:id="@+id/bug_tracker"
             android:title="@string/bug_tracker"
             android:icon="@drawable/bug_tracker"
-            android:orderInCategory="80" />
+            android:orderInCategory="90" />
 
         <item
             android:id="@+id/forum"
             android:title="@string/forum"
             android:icon="@drawable/forum"
-            android:orderInCategory="90" />
+            android:orderInCategory="100" />
     </group>
 
     <!-- If a group has an id, a line is drawn above it in the navigation view. -->
@@ -82,6 +91,6 @@
             android:id="@+id/donations"
             android:title="@string/donations"
             android:icon="@drawable/donations"
-            android:orderInCategory="100" />
+            android:orderInCategory="110" />
     </group>
 </menu>
\ No newline at end of file
index bf73edc02b14249fcdd7ae1feb9a5eb844771ed6..f80b72e15df4032d8955e05d1296eeced5b44d28 100644 (file)
@@ -48,7 +48,7 @@
     <string name="forum">Foro</string>
     <string name="donations">Donaciones</string>
 
-    <!-- Network Types. -->
+    <!-- Network types. -->
     <string name="unknown">Desconocido</string>
     <string name="gprs">GPRS – 2.5G/3G</string>
     <string name="gprs_detail">General Packet Radio Service</string>
@@ -90,7 +90,7 @@
     <string name="nr_detail">New Radio</string>
     <string name="error">Error</string>
 
-    <!-- Override Network Types. -->
+    <!-- Override network types. -->
     <string name="none">Ninguno</string>
     <string name="lte_ca">LTE CA – 4G</string>
     <string name="lte_ca_detail">Long-Term Evolution Carrier Aggregation</string>
     <string name="ok">OK</string>
 
     <!-- Dialogs. -->
+    <string name="stingrays">Stingrays</string>
     <string name="close">Cerrar</string>
 </resources>
\ No newline at end of file
index 8b9939ea864a1acd122869ed720d5945eec997bd..554396736a507fc234f88a925eb460fc0be95774 100644 (file)
@@ -48,7 +48,7 @@
     <string name="forum">Forum</string>
     <string name="donations">Dons</string>
 
-    <!-- Network Types. -->
+    <!-- Network types. -->
     <string name="unknown">Inconnu</string>
     <string name="gprs">GPRS – 2.5G/3G</string>
     <string name="gprs_detail">General Packet Radio Service</string>
@@ -90,7 +90,7 @@
     <string name="nr_detail">New Radio</string>
     <string name="error">Erreur</string>
 
-    <!-- Override Network Types. -->
+    <!-- Override network types. -->
     <string name="none">Aucun</string>
     <string name="lte_ca">LTE CA – 4G</string>
     <string name="lte_ca_detail">Long-Term Evolution Carrier Aggregation</string>
index c8d90e7bf0d0546ca9c0c7ca0d212407be293bb9..dced7a2c54a51db00b0a82975f11cfe06438768c 100644 (file)
 <resources>
     <!-- General. -->
     <string name="privacy_cell">Privacy Cell</string>
-    <string name="cell">Cell</string>
+    <string name="cell">Cella</string>
     <string name="asset_directory">it</string>  <!-- The asset directory string should be translated to match the language code for the directory that contains the HTML files. -->
-    <string name="open_navigation_drawer">Open navigation drawer</string>
-    <string name="close_navigation_drawer">Close navigation drawer</string>
-    <string name="not_connected">Your device does not appear to currently be connected to a cell phone network.</string>
+    <string name="open_navigation_drawer">Apri la scheda di navigazione</string>
+    <string name="close_navigation_drawer">Chiudi la scheda di navigazione</string>
+    <string name="not_connected">Sembra che il tuo dispositivo non sia connesso ad alcuna cella.</string>
 
     <!-- Text views.  The `\n\n` code inserts a line break and should be preserved in translations.
         Android removes double spaces, but extra spaces can be manually specified with the Unicode `\u0020` formatting.
         The `%1$s` code inserts variables into the displayed text and should be preserved in translation. -->
-    <string name="secure_from_stingray">Your device is connected to a standalone 5G network.\n\nIt is secure from stingray IMSI man-in-the-middle attacks.</string>
-    <string name="not_secure_from_stingray">Your device is not connected to a standalone 5G network.\n\nIt is not secure from stingray IMSI man-in-the-middle attacks.</string>
-    <string name="voice_network">Voice network: \u0020 %1$s</string>
-    <string name="data_network">Data network: \u0020 %1$s</string>
-    <string name="additional_network_info">Additional network info: \u0020 %1$s</string>
+    <string name="secure_from_stingray">Il tuo dispositivo è connesso a una rete 5G autonoma.\n\nLa rete è sicura da attacchi del tipo stingray IMSI man-in-the-middle.</string>
+    <string name="not_secure_from_stingray">Il tuo dispositivo non è connesso a una rete 5G autonoma.\n\nLa rete non è sicura da attacchi del tipo stingray IMSI man-in-the-middle.</string>
+    <string name="voice_network">Rete voce: \u0020 %1$s</string>
+    <string name="data_network">Rete dati: \u0020 %1$s</string>
+    <string name="additional_network_info">Informazioni aggiuntive sulla rete: \u0020 %1$s</string>
 
     <!-- Navigation menu. -->
-    <string name="permissions">Permissions</string>
+    <string name="permissions">Autorizzazioni</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="licenses">Licenze</string>
+    <string name="contributors">Collaboratori</string>
     <string name="news">News</string>
     <string name="roadmap">Roadmap</string>
     <string name="bug_tracker">Bug Tracker</string>
     <string name="forum">Forum</string>
-    <string name="donations">Donations</string>
+    <string name="donations">Donazioni</string>
 
-    <!-- Network Types. -->
-    <string name="unknown">Unknown</string>
+    <!-- Network types. -->
+    <string name="unknown">Sconosciuta</string>
     <string name="gprs">GPRS – 2.5G/3G</string>
     <string name="gprs_detail">General Packet Radio Service</string>
     <string name="edge">EDGE – 2.5G/3G</string>
@@ -90,8 +90,8 @@
     <string name="nr_detail">New Radio</string>
     <string name="error">Error</string>
 
-    <!-- Override Network Types. -->
-    <string name="none">None</string>
+    <!-- Override network types. -->
+    <string name="none">Nessuna</string>
     <string name="lte_ca">LTE CA – 4G</string>
     <string name="lte_ca_detail">Long-Term Evolution Carrier Aggregation</string>
     <string name="lte_advanced_pro">LTE Advanced Pro – 4.5G</string>
     <string name="nr_nsa_mmwave_detail">New Radio Non-Standalone millimeter Wave</string>
 
     <!-- Phone permission dialog. -->
-    <string name="phone_permission">Phone Permission</string>
-    <string name="phone_permission_text">Privacy Cell needs the Read Phone State permission to determine the safety level of your cell connection.</string>
+    <string name="phone_permission">Autorizzazioni sul dispositivo</string>
+    <string name="phone_permission_text">Privacy Cell ha bisogno dell\'autorizzazione di lettura dello stato del telefono per poter determinare il livello si sicurezza della connessione.</string>
     <string name="ok">OK</string>
 
     <!-- Dialogs. -->
-    <string name="stingrays">Stingrays</string>
-    <string name="close">Close</string>
+    <string name="stingrays">Stingray</string>
+    <string name="close">Chiudi</string>
 </resources>
\ No newline at end of file
index 2f017faff5df7b51b8c6c7d029568a58dd82ad9c..4566de8aafcb59572c820b568a9460b7d384bcd9 100644 (file)
@@ -21,7 +21,8 @@
 <resources>
     <!-- Nicknamed colors. -->
     <color name="blue_text">@color/violet_500</color>
-    <color name="icon">@color/violet_500</color>
+    <color name="icon_enabled">@color/violet_500</color>
+    <color name="icon_disabled">@color/gray_500</color>
     <color name="red_text">@color/salmon</color>
 
     <!-- Raw colors. -->
@@ -29,6 +30,8 @@
     <color name="blue_500">#FF2196F3</color>
     <color name="blue_700">#FF1976D2</color>
     <color name="blue_900">#FF0D47A1</color>
+    <color name="gray_500">#FF9E9E9E</color>
+    <color name="gray_600">#FF757575</color>
     <color name="red_600">#FFE53935</color>
     <color name="red_700">#FFD32F2F</color>
     <color name="salmon">#FFFC684E</color>
index ac28058c112a68bc5fcdccbe54ab286de938dc5a..cd52106b55e522550970deaf8c66caf0fbd12b28 100644 (file)
@@ -23,6 +23,9 @@
         <item name="android:statusBarColor">?android:attr/colorBackground</item>
         <item name="android:windowLightNavigationBar">false</item>
         <item name="android:windowLightStatusBar">false</item>
+
+        <!-- Colors. -->
+        <item name="colorAccent">@color/violet_500</item>
     </style>
 
     <style name="Theme.PrivacyCellAlertDialog" parent="Theme.AppCompat.DayNight.Dialog.Alert">
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
new file mode 100644 (file)
index 0000000..093d048
--- /dev/null
@@ -0,0 +1,110 @@
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<resources>
+    <!-- General. -->
+    <string name="privacy_cell">Privacy Cell</string>
+    <string name="cell">Cell</string>
+    <string name="asset_directory">en</string>  <!-- The asset directory string should be translated to match the language code for the directory that contains the HTML files. -->
+    <string name="open_navigation_drawer">Open navigation drawer</string>
+    <string name="close_navigation_drawer">Close navigation drawer</string>
+    <string name="not_connected">Your device does not appear to currently be connected to a cell phone network.</string>
+
+    <!-- Text views.  The `\n\n` code inserts a line break and should be preserved in translations.
+        Android removes double spaces, but extra spaces can be manually specified with the Unicode `\u0020` formatting.
+        The `%1$s` code inserts variables into the displayed text and should be preserved in translation. -->
+    <string name="secure_from_stingray">Your device is connected to a standalone 5G network.\n\nIt is secure from stingray IMSI man-in-the-middle attacks.</string>
+    <string name="not_secure_from_stingray">Your device is not connected to a standalone 5G network.\n\nIt is not secure from stingray IMSI man-in-the-middle attacks.</string>
+    <string name="voice_network">Voice network: \u0020 %1$s</string>
+    <string name="data_network">Data network: \u0020 %1$s</string>
+    <string name="additional_network_info">Additional network info: \u0020 %1$s</string>
+
+    <!-- Navigation menu. -->
+    <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="news">News</string>
+    <string name="roadmap">Roadmap</string>
+    <string name="bug_tracker">Bug Tracker</string>
+    <string name="forum">Forum</string>
+    <string name="donations">Donations</string>
+
+    <!-- Network types. -->
+    <string name="unknown">Unknown</string>
+    <string name="gprs">GPRS – 2.5G/3G</string>
+    <string name="gprs_detail">General Packet Radio Service</string>
+    <string name="edge">EDGE – 2.5G/3G</string>
+    <string name="edge_detail">Enhanced Data rates for GSM Evolution</string>
+    <string name="umts">UMTS – 3G</string>
+    <string name="umts_detail">Universal Mobile Telecommunications System</string>
+    <string name="cdma">CDMA – 2G</string>
+    <string name="cdma_detail">Code-Division Multiple Access</string>
+    <string name="evdo_0">EVDO 0 – 3.5G</string>
+    <string name="evdo_0_detail">Evolution-Data Optimized release 0</string>
+    <string name="evdo_a">EVDO A – 3.5G</string>
+    <string name="evdo_a_detail">Evolution-Data Optimized revision A</string>
+    <string name="rtt">1xRTT – 3G</string>
+    <string name="rtt_detail">Single-Carrier Radio Transmission Technology</string>
+    <string name="hsdpa">HSDPA – 3.5G</string>
+    <string name="hsdpa_detail">High Speed Downlink Packet Access</string>
+    <string name="hsupa">HSUPA – 3.5G</string>
+    <string name="hsupa_detail">High-Speed Uplink Packet Access</string>
+    <string name="hspa">HSPA – 3.5G</string>
+    <string name="hspa_detail">High Speed Packet Access</string>
+    <string name="iden">IDEN – 2G</string>
+    <string name="iden_detail">Integrated Digital Enhanced Network</string>
+    <string name="evdo_b">EVDO B – 3.5G</string>
+    <string name="evdo_b_detail">Evolution-Data Optimized revision B</string>
+    <string name="lte">LTE – 4G</string>
+    <string name="lte_detail">Long-Term Evolution</string>
+    <string name="ehrpd">EHRPD – 3.5G/4G</string>
+    <string name="ehrpd_detail">Enhanced High-Rate Packet Data</string>
+    <string name="hspap">HSPAP – 3.5G</string>
+    <string name="hspap_detail">High Speed Packet Access Plus</string>
+    <string name="gsm">GSM – 2G</string>
+    <string name="gsm_detail">Global System for Mobile Communications</string>
+    <string name="td_scdma">TD-SCDMA – 3G</string>
+    <string name="td_scdma_detail">Time Division-Synchronous Code Division Multiple Access</string>
+    <string name="iwlan">IWLAN – Wi-Fi</string>
+    <string name="iwlan_detail">Interworking Wireless LAN</string>
+    <string name="nr">NR – 5G</string>
+    <string name="nr_detail">New Radio</string>
+    <string name="error">Error</string>
+
+    <!-- Override network types. -->
+    <string name="none">None</string>
+    <string name="lte_ca">LTE CA – 4G</string>
+    <string name="lte_ca_detail">Long-Term Evolution Carrier Aggregation</string>
+    <string name="lte_advanced_pro">LTE Advanced Pro – 4.5G</string>
+    <string name="lte_advanced_pro_detail">Long-Term Evolution Advanced Pro</string>
+    <string name="nr_nsa">NR NSA – 4G/5G</string>
+    <string name="nr_nsa_detail">New Radio Non-Standalone</string>
+    <string name="nr_nsa_mmwave">NR NSA mmWave – 4G/5G</string>
+    <string name="nr_nsa_mmwave_detail">New Radio Non-Standalone millimeter Wave</string>
+
+    <!-- Phone permission dialog. -->
+    <string name="phone_permission">Phone Permission</string>
+    <string name="phone_permission_text">Privacy Cell needs the Read Phone State permission to determine the safety level of your cell connection.</string>
+    <string name="ok">OK</string>
+
+    <!-- Dialogs. -->
+    <string name="stingrays">Stingrays</string>
+    <string name="close">Close</string>
+</resources>
\ No newline at end of file
index 67adb87b121065450aa787f40edbad1edda6f5b1..f49cbd0a0cf3b84512e12cfd31e6384e2157f721 100644 (file)
@@ -21,7 +21,8 @@
 <resources>
     <!-- Nicknamed colors. -->
     <color name="blue_text">@color/blue_700</color>
-    <color name="icon">@color/blue_700</color>
+    <color name="icon_enabled">@color/blue_700</color>
+    <color name="icon_disabled">@color/gray_600</color>
     <color name="red_text">@color/red_700</color>
 
     <!-- Raw colors. -->
@@ -29,6 +30,8 @@
     <color name="blue_500">#FF2196F3</color>
     <color name="blue_700">#FF1976D2</color>
     <color name="blue_900">#FF0D47A1</color>
+    <color name="gray_500">#FF9E9E9E</color>
+    <color name="gray_600">#FF757575</color>
     <color name="red_600">#FFE53935</color>
     <color name="red_700">#FFD32F2F</color>
     <color name="salmon">#FFFC684E</color>
index 9823dd2e1c7a12d2bcfa926d6eb23ac00b51adec..fdf38ee614e187f619d47ec4aeacb8c925e68b86 100644 (file)
@@ -39,6 +39,7 @@
     <string name="additional_network_info">Additional network info: \u0020 %1$s</string>
 
     <!-- Navigation menu. -->
+    <string name="settings">Settings</string>
     <string name="permissions">Permissions</string>
     <string name="privacy_policy">Privacy Policy</string>
     <string name="changelog">Changelog</string>
     <string name="forum">Forum</string>
     <string name="donations">Donations</string>
 
-    <!-- Network Types. -->
+    <!-- Settings. -->
+    <string name="bottom_app_bar">Bottom app bar</string>
+    <string name="bottom_app_bar_summary">Move the app bar to the bottom of the screen.  Changing this setting will restart Privacy Cell.</string>
+
+    <!-- Network types. -->
     <string name="unknown">Unknown</string>
     <string name="gprs">GPRS – 2.5G/3G</string>
     <string name="gprs_detail">General Packet Radio Service</string>
@@ -92,7 +97,7 @@
     <string name="nr_detail">New Radio</string>
     <string name="error">Error</string>
 
-    <!-- Override Network Types. -->
+    <!-- Override network types. -->
     <string name="none">None</string>
     <string name="lte_ca">LTE CA – 4G</string>
     <string name="lte_ca_detail">Long-Term Evolution Carrier Aggregation</string>
     <!-- Dialogs. -->
     <string name="stingrays">Stingrays</string>
     <string name="close">Close</string>
+
+    <!-- Preference keys. -->
+    <string name="bottom_app_bar_key" translatable="false">bottom_app_bar</string>
 </resources>
\ No newline at end of file
index 4fdeea9f4b200f7a1dcc579ffde76be70e650d0b..cb42f2510e656fcf90bef2f3727a58282bf3da08 100644 (file)
@@ -23,6 +23,9 @@
         <item name="android:statusBarColor">?android:attr/colorBackground</item>
         <item name="android:windowLightNavigationBar">true</item>
         <item name="android:windowLightStatusBar">true</item>
+
+        <!-- Colors. -->
+        <item name="colorAccent">@color/blue_700</item>
     </style>
 
     <style name="Theme.PrivacyCellAlertDialog" parent="Theme.AppCompat.DayNight.Dialog.Alert">
diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml
new file mode 100644 (file)
index 0000000..d31fafb
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+  Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
+
+  Privacy Cell 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 Cell 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 Cell.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
+    <SwitchPreferenceCompat
+        app:key="bottom_app_bar"
+        app:title="@string/bottom_app_bar"
+        app:summary="@string/bottom_app_bar_summary"
+        app:defaultValue="false" />
+</PreferenceScreen>
\ No newline at end of file
index 105f5763357ffb60cd66f90c898261b9f860a923..a42d6c42d5c1c3e4b6f74c1f2e9c9f4a28f9b3bd 100644 (file)
@@ -25,7 +25,7 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.android.tools.build:gradle:7.0.1'
+        classpath 'com.android.tools.build:gradle:7.0.2'
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30"
 
         // NOTE: Do not place your application dependencies here; they belong
index f30b1ba3b959e518638f6750e8b4115350705d9e..cf2b44a5df55bb9c98a2191adbcdcd345b98cd24 100644 (file)
Binary files a/fastlane/metadata/android/es-ES/images/phoneScreenshots/03-Stingrays.png and b/fastlane/metadata/android/es-ES/images/phoneScreenshots/03-Stingrays.png differ