From 2bd8b7edef80b4b10cb809a198b4624c6c740c86 Mon Sep 17 00:00:00 2001
From: Soren Stoutner
Date: Mon, 31 Oct 2022 15:27:51 -0700
Subject: [PATCH] Add WebView DevTools to the navigation menu.
https://redmine.stoutner.com/issues/893
---
COPYING | 2 +-
app/src/main/AndroidManifest.xml | 5 --
app/src/main/assets/de/about_licenses.html | 11 ++-
.../main/assets/de/guide_tracking_ids.html | 14 +--
app/src/main/assets/en/about_licenses.html | 11 ++-
.../main/assets/en/guide_tracking_ids.html | 13 +--
app/src/main/assets/es/about_licenses.html | 11 ++-
.../main/assets/es/guide_tracking_ids.html | 14 +--
app/src/main/assets/fr/about_licenses.html | 11 ++-
.../main/assets/fr/guide_tracking_ids.html | 12 +--
app/src/main/assets/it/about_licenses.html | 11 ++-
.../main/assets/it/guide_tracking_ids.html | 14 +--
.../main/assets/pt-rBR/about_licenses.html | 11 ++-
.../assets/pt-rBR/guide_tracking_ids.html | 13 +--
app/src/main/assets/ru/about_licenses.html | 11 ++-
.../main/assets/ru/guide_tracking_ids.html | 14 +--
app/src/main/assets/shared_images/add.svg | 24 ++---
.../aod_tablet_rounded_grade200.svg | 30 +++++++
.../main/assets/shared_images/arrow_back.svg | 24 ++---
.../assets/shared_images/arrow_forward.svg | 24 ++---
.../main/assets/shared_images/bookmarks.svg | 24 ++---
.../main/assets/shared_images/bug_report.svg | 22 ++---
.../assets/shared_images/call_to_action.svg | 24 ++---
.../assets/shared_images/camera_enhance.svg | 28 +++---
.../shared_images/chrome_reader_mode.svg | 22 ++---
.../assets/shared_images/clear_and_exit.svg | 36 ++++----
app/src/main/assets/shared_images/close.svg | 24 ++---
app/src/main/assets/shared_images/cookie.svg | 24 ++---
.../assets/shared_images/create_bookmark.svg | 24 ++---
.../assets/shared_images/create_folder.svg | 24 ++---
app/src/main/assets/shared_images/delete.svg | 24 ++---
.../assets/shared_images/delete_forever.svg | 24 ++---
.../assets/shared_images/devices_other.svg | 24 ++---
.../shared_images/disabled_by_default.svg | 24 ++---
app/src/main/assets/shared_images/dns.svg | 24 ++---
.../main/assets/shared_images/donut_small.svg | 24 ++---
app/src/main/assets/shared_images/edit.svg | 24 ++---
.../main/assets/shared_images/expand_less.svg | 24 ++---
.../main/assets/shared_images/expand_more.svg | 24 ++---
.../main/assets/shared_images/file_copy.svg | 24 ++---
.../assets/shared_images/file_download.svg | 24 ++---
.../assets/shared_images/find_in_page.svg | 24 ++---
app/src/main/assets/shared_images/folder.svg | 24 ++---
app/src/main/assets/shared_images/home.svg | 24 ++---
app/src/main/assets/shared_images/image.svg | 24 ++---
.../assets/shared_images/import_contacts.svg | 24 ++---
.../assets/shared_images/import_export.svg | 24 ++---
.../shared_images/important_devices.svg | 24 ++---
.../assets/shared_images/info_outline.svg | 24 ++---
.../shared_images/javascript_enabled.svg | 60 +++++++------
.../main/assets/shared_images/language.svg | 23 ++---
.../main/assets/shared_images/link_off.svg | 24 ++---
app/src/main/assets/shared_images/list.svg | 24 ++---
.../assets/shared_images/local_activity.svg | 24 ++---
.../assets/shared_images/location_off.svg | 24 ++---
app/src/main/assets/shared_images/lock.svg | 24 ++---
app/src/main/assets/shared_images/map.svg | 24 ++---
.../main/assets/shared_images/mastodon.svg | 16 ++--
app/src/main/assets/shared_images/more.svg | 24 ++---
.../assets/shared_images/move_to_folder.svg | 24 ++---
.../assets/shared_images/new_releases.svg | 24 ++---
.../main/assets/shared_images/night_mode.svg | 24 ++---
.../assets/shared_images/open_in_browser.svg | 24 ++---
app/src/main/assets/shared_images/payment.svg | 24 ++---
.../assets/shared_images/privacy_browser.svg | 60 +++++++------
.../assets/shared_images/question_answer.svg | 22 ++---
app/src/main/assets/shared_images/refresh.svg | 24 ++---
app/src/main/assets/shared_images/save.svg | 24 ++---
app/src/main/assets/shared_images/search.svg | 24 ++---
.../main/assets/shared_images/select_all.svg | 24 ++---
.../main/assets/shared_images/settings.svg | 24 ++---
.../shared_images/settings_overscan.svg | 24 ++---
app/src/main/assets/shared_images/share.svg | 25 +++---
.../main/assets/shared_images/smartphone.svg | 24 ++---
app/src/main/assets/shared_images/sort.svg | 24 ++---
.../assets/shared_images/sort_selected.svg | 89 ++++++++++---------
app/src/main/assets/shared_images/style.svg | 24 ++---
.../main/assets/shared_images/subtitles.svg | 24 ++---
app/src/main/assets/shared_images/tab.svg | 24 ++---
.../main/assets/shared_images/text_fields.svg | 24 ++---
.../assets/shared_images/thumbs_up_down.svg | 24 ++---
.../shared_images/vertical_align_bottom.svg | 24 ++---
.../shared_images/vertical_align_top.svg | 24 ++---
.../assets/shared_images/visibility_off.svg | 24 ++---
app/src/main/assets/shared_images/vpn_key.svg | 24 ++---
.../main/assets/shared_images/vpn_lock.svg | 24 ++---
app/src/main/assets/shared_images/warning.svg | 60 +++++++------
app/src/main/assets/shared_images/web.svg | 24 ++---
app/src/main/assets/tr/about_licenses.html | 11 ++-
.../main/assets/tr/guide_tracking_ids.html | 13 +--
.../activities/DomainsActivity.kt | 4 +-
.../activities/MainWebViewActivity.java | 37 +++-----
.../activities/ViewSourceActivity.kt | 2 +-
.../fragments/DomainSettingsFragment.kt | 87 ------------------
.../fragments/SettingsFragment.kt | 19 ----
.../helpers/DomainsDatabaseHelper.kt | 20 ++---
.../helpers/ImportExportDatabaseHelper.kt | 41 +++------
.../views/NestedScrollWebView.kt | 19 ----
app/src/main/res/drawable/next.xml | 4 +-
app/src/main/res/drawable/previous.xml | 4 +-
.../res/drawable/ssl_certificate_disabled.xml | 14 ---
.../main/res/drawable/webview_devtools.xml | 13 +++
.../x_requested_with_header_disabled.xml | 13 ---
.../x_requested_with_header_enabled.xml | 13 ---
.../res/layout/domain_settings_fragment.xml | 53 +----------
.../res/layout/view_source_bottom_appbar.xml | 6 +-
.../res/layout/view_source_top_appbar.xml | 6 +-
.../webview_navigation_menu_bottom_appbar.xml | 34 ++++---
.../webview_navigation_menu_top_appbar.xml | 14 ++-
app/src/main/res/values-de/strings.xml | 16 +---
app/src/main/res/values-es/strings.xml | 18 +---
app/src/main/res/values-fr/strings.xml | 14 +--
app/src/main/res/values-it/strings.xml | 18 +---
app/src/main/res/values-pt-rBR/strings.xml | 7 +-
app/src/main/res/values-ru/strings.xml | 16 +---
app/src/main/res/values-tr/strings.xml | 7 +-
app/src/main/res/values/strings.xml | 20 +----
app/src/main/res/xml/preferences.xml | 6 --
118 files changed, 1240 insertions(+), 1396 deletions(-)
create mode 100644 app/src/main/assets/shared_images/aod_tablet_rounded_grade200.svg
delete mode 100644 app/src/main/res/drawable/ssl_certificate_disabled.xml
create mode 100644 app/src/main/res/drawable/webview_devtools.xml
delete mode 100644 app/src/main/res/drawable/x_requested_with_header_disabled.xml
delete mode 100644 app/src/main/res/drawable/x_requested_with_header_enabled.xml
diff --git a/COPYING b/COPYING
index 28ec8446..f013695e 100644
--- a/COPYING
+++ b/COPYING
@@ -1,6 +1,6 @@
Privacy Browser Android copyright © 2015-2022 Soren Stoutner .
-This file is part of Privacy Browser .
+This file is part of Privacy Browser Android .
Privacy Browser Android is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as published
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 70b076d3..8d99e276 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -70,11 +70,6 @@
android:name="android.webkit.WebView.EnableSafeBrowsing"
android:value="false" />
-
-
-
.
+ Copyright 2016-2022 Soren Stoutner .
Translation 2020 Bernhard G. Keller. Copyright assigned to Soren Stoutner .
@@ -31,11 +31,11 @@
Copyright:
- Privacy Browser ist copyright © 2015-2022 von Soren Stoutner .
+ Privacy Browser ist copyright 2015-2022 von Soren Stoutner .
Lizenz:
Privacy Browser ist veröffentlicht unter der GPLv3+ Lizenz . The full text of the license is below.
- The source code is available from gitweb.stoutner.com .
+ The source code is available from gitweb.stoutner.com .
Blocklists:
EasyList and EasyPrivacy
@@ -102,6 +102,7 @@
which is released under the Apache License 2.0 .
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.
add.
+ aod_tablet_rounded_grade200.
arrow_back.
arrow_forward.
bookmarks.
@@ -1761,4 +1762,6 @@ 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.
\ No newline at end of file
+limitations under the License.
+
+