/*
- * Copyright © 2016-2022 Soren Stoutner <soren@stoutner.com>.
+ * Copyright 2016-2022 Soren Stoutner <soren@stoutner.com>.
*
* This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
*
val dialogBuilder = AlertDialog.Builder(requireContext(), R.style.PrivacyBrowserAlertDialog)
// Set the icon.
- dialogBuilder.setIcon(R.drawable.ssl_certificate_enabled)
+ dialogBuilder.setIcon(R.drawable.ssl_certificate)
// Set the title.
dialogBuilder.setTitle(R.string.ssl_certificate_error)
val endDateStringBuilder = SpannableStringBuilder(endDateLabel + endDate)
// Define the color spans.
- val blueColorSpan = ForegroundColorSpan(requireContext().getColor(R.color.blue_text))
+ val blueColorSpan = ForegroundColorSpan(requireContext().getColor(R.color.alt_blue_text))
val redColorSpan = ForegroundColorSpan(requireContext().getColor(R.color.red_text))
// Setup the spans to display the certificate information in blue. `SPAN_INCLUSIVE_INCLUSIVE` allows the span to grow in either direction.
val ipAddressesStringBuilder = SpannableStringBuilder(ipAddressesLabel + ipAddresses)
// Create a blue color span according to the theme.
- val blueColorSpan = ForegroundColorSpan(activity.getColor(R.color.blue_text))
+ val blueColorSpan = ForegroundColorSpan(activity.getColor(R.color.alt_blue_text))
// Set the string builder to display the certificate information in blue. `SPAN_INCLUSIVE_INCLUSIVE` allows the span to grow in either direction.
ipAddressesStringBuilder.setSpan(blueColorSpan, ipAddressesLabel.length, ipAddressesStringBuilder.length, Spanned.SPAN_INCLUSIVE_INCLUSIVE)
ipAddressesTextView.text = ipAddresses
}
}
-}
\ No newline at end of file
+}