From eac401700379e6ac5e6b0b696b932354001ef738 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Fri, 18 Nov 2022 13:47:15 -0700 Subject: [PATCH] Fix WebView's dark mode on API 29-32. https://redmine.stoutner.com/issues/927 --- app/src/main/assets/de/about_changelog.html | 6 +- app/src/main/assets/en/about_changelog.html | 8 +- .../main/assets/en/guide_local_storage.html | 2 +- app/src/main/assets/es/about_changelog.html | 4 +- app/src/main/assets/fr/about_changelog.html | 4 +- app/src/main/assets/it/about_changelog.html | 8 +- .../main/assets/pt-rBR/about_changelog.html | 122 +++++++-------- app/src/main/assets/pt-rBR/about_links.html | 2 +- .../assets/pt-rBR/guide_local_storage.html | 19 +-- .../assets/pt-rBR/guide_tracking_ids.html | 14 +- app/src/main/assets/ru/about_changelog.html | 6 +- app/src/main/assets/tr/about_changelog.html | 8 +- .../main/assets/tr/guide_local_storage.html | 2 +- .../activities/MainWebViewActivity.java | 145 ++---------------- .../fragments/DomainSettingsFragment.kt | 5 + .../fragments/SettingsFragment.kt | 17 +- app/src/main/res/values-pt-rBR/strings.xml | 12 ++ app/src/main/res/values/strings.xml | 1 + app/src/main/res/xml/preferences.xml | 2 +- .../metadata/android/it-IT/changelogs/62.txt | 1 + .../metadata/android/pt-BR/changelogs/60.txt | 13 ++ .../metadata/android/pt-BR/changelogs/62.txt | 1 + 22 files changed, 165 insertions(+), 237 deletions(-) create mode 100644 fastlane/metadata/android/it-IT/changelogs/62.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/60.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/62.txt diff --git a/app/src/main/assets/de/about_changelog.html b/app/src/main/assets/de/about_changelog.html index 2c5cbc16..48569244 100644 --- a/app/src/main/assets/de/about_changelog.html +++ b/app/src/main/assets/de/about_changelog.html @@ -33,8 +33,8 @@ -

3.12.1 (Version Code 62)

-

17. November 2022 - Mindest-API 23, Ziel-API 33

+

3.12.1 (Version Code 62)

+

17. November 2022 - Mindest-API 23, Ziel-API 33

@@ -52,7 +52,7 @@
  • Delete the Service Worker directory after every page load.
  • Restrict the file provider to a subdirectory of the cache directory.
  • Bump the target API to 33 (Android 13).
  • -
  • Implement forcing WebView's dark mode on Android 13.
  • +
  • Implement forcing WebView’s dark mode on Android 13.
  • Implement a number diff --git a/app/src/main/assets/en/about_changelog.html b/app/src/main/assets/en/about_changelog.html index 283c5776..1500331c 100644 --- a/app/src/main/assets/en/about_changelog.html +++ b/app/src/main/assets/en/about_changelog.html @@ -27,8 +27,8 @@ -

    3.12.1 (version code 62)

    -

    17 November 2022 - minimum API 23, target API 33

    +

    3.12.1 (version code 62)

    +

    17 November 2022 - minimum API 23, target API 33

    @@ -46,7 +46,7 @@
  • Delete the Service Worker directory after every page load.
  • Restrict the file provider to a subdirectory of the cache directory.
  • Bump the target API to 33 (Android 13).
  • -
  • Implement forcing WebView's dark mode on Android 13.
  • +
  • Implement forcing WebView’s dark mode on Android 13.
  • Implement a number @@ -830,7 +830,7 @@ diff --git a/app/src/main/assets/en/guide_local_storage.html b/app/src/main/assets/en/guide_local_storage.html index 05d5a9b4..a1ccf604 100644 --- a/app/src/main/assets/en/guide_local_storage.html +++ b/app/src/main/assets/en/guide_local_storage.html @@ -43,7 +43,7 @@

    Almost all websites with logins require cookies to be enabled for a user to log in. That is how they make sure it is still you as you move from page to page on the site, and is, in my opinion, the only legitimate use for cookies.

    -

    Android's System WebView treats cookies as an app-level setting, meaning that cookies are either on or off for all tabs in Privacy Browser. +

    Android’s System WebView treats cookies as an app-level setting, meaning that cookies are either on or off for all tabs in Privacy Browser. The result is that the cookies setting for whatever tab is currently displayed controls the cookies setting for all the background tabs as well. If you have a tab in that background that has cookies enabled so that you can be logged into a website, and switch to a tab that doesn't have cookies enabled, it disabled cookies for all the tabs. If the background tab makes a request, for example, to see if there is updated information, that request will be sent without cookies, which will cause the website to log you out. diff --git a/app/src/main/assets/es/about_changelog.html b/app/src/main/assets/es/about_changelog.html index 47985fa2..4807918f 100644 --- a/app/src/main/assets/es/about_changelog.html +++ b/app/src/main/assets/es/about_changelog.html @@ -29,8 +29,8 @@ -

    3.12.1 (código de versión 62)

    -

    17 de noviembre de 2022 - API mínimo 23, API objetivo 33

    +

    3.12.1 (código de versión 62)

    +

    17 de noviembre de 2022 - API mínimo 23, API objetivo 33

    diff --git a/app/src/main/assets/fr/about_changelog.html b/app/src/main/assets/fr/about_changelog.html index aeb633db..e33374f6 100644 --- a/app/src/main/assets/fr/about_changelog.html +++ b/app/src/main/assets/fr/about_changelog.html @@ -29,8 +29,8 @@ -

    3.12.1 (version code 62)

    -

    17 Novembre 2022 - API minimale : 23, API optimale : 33

    +

    3.12.1 (version code 62)

    +

    17 Novembre 2022 - API minimale : 23, API optimale : 33

    diff --git a/app/src/main/assets/it/about_changelog.html b/app/src/main/assets/it/about_changelog.html index 0dc9442a..48b35a0a 100644 --- a/app/src/main/assets/it/about_changelog.html +++ b/app/src/main/assets/it/about_changelog.html @@ -29,10 +29,10 @@ -

    3.12.1 (versione codice 62)

    -

    17 Novembre 2022 - minima API 23, target API 33

    +

    3.12.1 (versione codice 62)

    +

    17 Novembre 2022 - minima API 23, target API 33

    3.12 (versione codice 61)

    @@ -857,7 +857,7 @@ diff --git a/app/src/main/assets/pt-rBR/about_changelog.html b/app/src/main/assets/pt-rBR/about_changelog.html index 4f7baf11..fb685b43 100644 --- a/app/src/main/assets/pt-rBR/about_changelog.html +++ b/app/src/main/assets/pt-rBR/about_changelog.html @@ -29,56 +29,56 @@ -

    3.12.1 (version code 62)

    -

    17 November 2022 - API mínimo 23, API alvo 33

    - - -

    3.12 (version code 61)

    -

    16 November 2022 - API mínimo 23, API alvo 33

    -