]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/adapters/PinnedMismatchPagerAdapter.kt
Remove AsyncTask from SSLCertificateErrorDialog. https://redmine.stoutner.com/issues/987
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / adapters / PinnedMismatchPagerAdapter.kt
index 8953d8545b53d493e5be160c49139c761530964f..569652ca5b4174f3f57b2d50c3307b9b8182d0c2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2021-2022 Soren Stoutner <soren@stoutner.com>.
+ * Copyright © 2021-2023 Soren Stoutner <soren@stoutner.com>.
  *
  * This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
  *
@@ -90,13 +90,13 @@ class PinnedMismatchPagerAdapter(private val context: Context, private val layou
         val endDateTextView = tabLayout.findViewById<TextView>(R.id.end_date)
 
         // Setup the labels.
-        val domainNameLabel = context.getString(R.string.domain_label) + "  "
-        val ipAddressesLabel = context.getString(R.string.ip_addresses) + "  "
-        val cNameLabel = context.getString(R.string.common_name) + "  "
-        val oNameLabel = context.getString(R.string.organization) + "  "
-        val uNameLabel = context.getString(R.string.organizational_unit) + "  "
-        val startDateLabel = context.getString(R.string.start_date) + "  "
-        val endDateLabel = context.getString(R.string.end_date) + "  "
+        val domainNameLabel = context.getString(R.string.domain_label)
+        val ipAddressesLabel = context.getString(R.string.ip_addresses)
+        val cNameLabel = context.getString(R.string.common_name)
+        val oNameLabel = context.getString(R.string.organization)
+        val uNameLabel = context.getString(R.string.organizational_unit)
+        val startDateLabel = context.getString(R.string.start_date)
+        val endDateLabel = context.getString(R.string.end_date)
 
         // Convert the URL to a URI.
         val currentUri = Uri.parse(nestedScrollWebView.url)
@@ -187,7 +187,7 @@ class PinnedMismatchPagerAdapter(private val context: Context, private val layou
         }
 
         // Create the color spans.
-        val blueColorSpan = ForegroundColorSpan(context.getColor(R.color.blue_text))
+        val blueColorSpan = ForegroundColorSpan(context.getColor(R.color.alt_blue_text))
         val redColorSpan = ForegroundColorSpan(context.getColor(R.color.red_text))
 
         // Set the domain name to be blue.