X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fdialogs%2FSslCertificateErrorDialog.java;h=c34faaad610a377668436f5a49bd3b30df4ce4a1;hp=76a23a815420101b0564c473b9818b4ee694878d;hb=39380e8e8bdb3b9e29569a263277c9c3112b44ac;hpb=86e63c8ed007311ab392d4beb7dd7ba64b9c3c70 diff --git a/app/src/main/java/com/stoutner/privacybrowser/dialogs/SslCertificateErrorDialog.java b/app/src/main/java/com/stoutner/privacybrowser/dialogs/SslCertificateErrorDialog.java index 76a23a81..c34faaad 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/dialogs/SslCertificateErrorDialog.java +++ b/app/src/main/java/com/stoutner/privacybrowser/dialogs/SslCertificateErrorDialog.java @@ -268,7 +268,7 @@ public class SslCertificateErrorDialog extends DialogFragment { blueColorSpan = new ForegroundColorSpan(getResources().getColor(R.color.blue_700)); redColorSpan = new ForegroundColorSpan(getResources().getColor(R.color.red_a700)); } else { - blueColorSpan = new ForegroundColorSpan(getResources().getColor(R.color.violet_500)); + blueColorSpan = new ForegroundColorSpan(getResources().getColor(R.color.violet_700)); redColorSpan = new ForegroundColorSpan(getResources().getColor(R.color.red_900)); } @@ -373,8 +373,8 @@ public class SslCertificateErrorDialog extends DialogFragment { // This must run asynchronously because it involves a network request. `String` declares the parameters. `Void` does not declare progress units. `SpannableStringBuilder` contains the results. private static class GetIpAddresses extends AsyncTask { // The weak references are used to determine if the activity or the alert dialog have disappeared while the AsyncTask is running. - private WeakReference activityWeakReference; - private WeakReference alertDialogWeakReference; + private final WeakReference activityWeakReference; + private final WeakReference alertDialogWeakReference; GetIpAddresses(Activity activity, AlertDialog alertDialog) { // Populate the weak references.