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.
private val activityWeakReference: WeakReference<Activity> = WeakReference(activity)
private val alertDialogWeakReference: WeakReference<AlertDialog> = WeakReference(alertDialog)
+ @Deprecated("Deprecated in Java")
override fun doInBackground(vararg domainName: String): SpannableStringBuilder {
// Get handles for the activity and the alert dialog.
val activity = activityWeakReference.get()
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)
}
// `onPostExecute()` operates on the UI thread.
+ @Deprecated("Deprecated in Java")
override fun onPostExecute(ipAddresses: SpannableStringBuilder) {
// Get handles for the activity and the alert dialog.
val activity = activityWeakReference.get()