From 031def95c6d9bfc14113fe86b4a5690233d93ce2 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Wed, 31 Mar 2021 11:13:09 -0700 Subject: [PATCH] Migrate the rest of the dialogs to Kotlin. https://redmine.stoutner.com/issues/683 --- app/build.gradle | 2 +- app/src/main/assets/de/about_changelog.html | 8 +- app/src/main/assets/en/about_changelog.html | 4 +- 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 | 4 +- .../main/assets/pt-rBR/about_changelog.html | 4 +- app/src/main/assets/ru/about_changelog.html | 4 +- app/src/main/assets/tr/about_changelog.html | 4 +- .../activities/MainWebViewActivity.java | 53 +- .../activities/RequestsActivity.java | 10 +- .../asynctasks/SaveAboutVersionImage.java | 3 - .../privacybrowser/asynctasks/SaveUrl.java | 3 - .../privacybrowser/dialogs/AddDomainDialog.kt | 4 +- .../dialogs/CreateBookmarkDialog.kt | 4 +- .../dialogs/CreateBookmarkFolderDialog.kt | 4 +- .../dialogs/CreateHomeScreenShortcutDialog.kt | 4 +- .../dialogs/EditBookmarkDatabaseViewDialog.kt | 4 +- .../dialogs/EditBookmarkDialog.kt | 4 +- .../EditBookmarkFolderDatabaseViewDialog.kt | 4 +- .../dialogs/EditBookmarkFolderDialog.kt | 4 +- .../privacybrowser/dialogs/FontSizeDialog.kt | 4 +- .../dialogs/HttpAuthenticationDialog.kt | 9 +- .../dialogs/MoveToFolderDialog.kt | 4 +- .../privacybrowser/dialogs/OpenDialog.kt | 2 +- .../dialogs/PinnedMismatchDialog.kt | 4 +- .../dialogs/ProxyNotInstalledDialog.kt | 2 +- .../privacybrowser/dialogs/SaveDialog.kt | 10 +- .../dialogs/SaveWebpageDialog.java | 334 ------------- .../dialogs/SaveWebpageDialog.kt | 289 +++++++++++ .../dialogs/SslCertificateErrorDialog.java | 467 ------------------ .../dialogs/SslCertificateErrorDialog.kt | 441 +++++++++++++++++ .../dialogs/UrlHistoryDialog.java | 245 --------- .../dialogs/UrlHistoryDialog.kt | 212 ++++++++ .../dialogs/ViewRequestDialog.java | 349 ------------- .../dialogs/ViewRequestDialog.kt | 269 ++++++++++ .../dialogs/ViewSslCertificateDialog.java | 335 ------------- .../dialogs/ViewSslCertificateDialog.kt | 297 +++++++++++ .../dialogs/WaitingForProxyDialog.java | 79 --- .../dialogs/WaitingForProxyDialog.kt | 61 +++ .../fragments/AboutWebViewFragment.kt | 4 +- .../main/res/menu/webview_options_menu.xml | 9 +- build.gradle | 2 +- .../metadata/android/de-DE/changelogs/52.txt | 2 +- .../metadata/android/de-DE/changelogs/54.txt | 2 +- 45 files changed, 1676 insertions(+), 1895 deletions(-) delete mode 100644 app/src/main/java/com/stoutner/privacybrowser/dialogs/SaveWebpageDialog.java create mode 100644 app/src/main/java/com/stoutner/privacybrowser/dialogs/SaveWebpageDialog.kt delete mode 100644 app/src/main/java/com/stoutner/privacybrowser/dialogs/SslCertificateErrorDialog.java create mode 100644 app/src/main/java/com/stoutner/privacybrowser/dialogs/SslCertificateErrorDialog.kt delete mode 100644 app/src/main/java/com/stoutner/privacybrowser/dialogs/UrlHistoryDialog.java create mode 100644 app/src/main/java/com/stoutner/privacybrowser/dialogs/UrlHistoryDialog.kt delete mode 100644 app/src/main/java/com/stoutner/privacybrowser/dialogs/ViewRequestDialog.java create mode 100644 app/src/main/java/com/stoutner/privacybrowser/dialogs/ViewRequestDialog.kt delete mode 100644 app/src/main/java/com/stoutner/privacybrowser/dialogs/ViewSslCertificateDialog.java create mode 100644 app/src/main/java/com/stoutner/privacybrowser/dialogs/ViewSslCertificateDialog.kt delete mode 100644 app/src/main/java/com/stoutner/privacybrowser/dialogs/WaitingForProxyDialog.java create mode 100644 app/src/main/java/com/stoutner/privacybrowser/dialogs/WaitingForProxyDialog.kt diff --git a/app/build.gradle b/app/build.gradle index 2dff0f45..4eb4f1ec 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -88,7 +88,7 @@ dependencies { implementation 'androidx.webkit:webkit:1.4.0' // Include the Kotlin standard libraries. This should be the same version number listed in project build.gradle. - implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31' + implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.32' // Include the Google material library. implementation 'com.google.android.material:material:1.3.0' diff --git a/app/src/main/assets/de/about_changelog.html b/app/src/main/assets/de/about_changelog.html index 1fafac45..a1d639b8 100644 --- a/app/src/main/assets/de/about_changelog.html +++ b/app/src/main/assets/de/about_changelog.html @@ -33,8 +33,8 @@ -

3.7 (version code 54)

-

29. März 2021 - Mindest-API 19, Ziel-API 30

+

3.7 (version code 54)

+

29. März 2021 - Mindest-API 19, Ziel-API 30