From 83b0beda5a1374f43e0ea07b7fad4adee9365ea9 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Sat, 12 Aug 2023 19:06:58 -0700 Subject: [PATCH] Increase the delay time that the SSL certificate dialog won't display after restart. https://redmine.stoutner.com/issues/1020 --- .../stoutner/privacybrowser/activities/MainWebViewActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt index ac27dcd6..de608492 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt @@ -4223,8 +4223,8 @@ class MainWebViewActivity : AppCompatActivity(), CreateBookmarkDialog.CreateBook // Calculate the milliseconds since the last restart. This can be replaced by the simpler LocalDateTime once the minimum API >= 26. val millisecondsSinceLastRestart = Date().time - restartTime.time - // Only display the SSL certificate dialog if it has been at least 1 second since the last restart as deep restarts sometimes end up selecting a tab twice. - if (millisecondsSinceLastRestart > 1000) { + // Only display the SSL certificate dialog if it has been at least 2 seconds since the last restart as deep restarts sometimes end up selecting a tab twice. + if (millisecondsSinceLastRestart > 2000) { // Instantiate the View SSL Certificate dialog. val viewSslCertificateDialogFragment: DialogFragment = ViewSslCertificateDialog.displayDialog(currentWebView!!.webViewFragmentId, currentWebView!!.getFavoriteIcon()) -- 2.45.2