]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/adapters/PinnedMismatchPagerAdapter.kt
Convert the views and data classes to Kotlin. https://redmine.stoutner.com/issues/744
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / adapters / PinnedMismatchPagerAdapter.kt
index 6156533a72d2d4d1d50e4d846a5e58c4109bb1ab..f955fb8483afc86f61f0d256c23e1d4150913074 100644 (file)
@@ -131,7 +131,7 @@ class PinnedMismatchPagerAdapter(private val context: Context, private val layou
         }
 
         // Get the pinned SSL certificate.
-        val pinnedSslCertificateArrayList = nestedScrollWebView.pinnedSslCertificate
+        val pinnedSslCertificateArrayList = nestedScrollWebView.getPinnedSslCertificate()
 
         // Extract the arrays from the array list.
         val pinnedSslCertificateStringArray = pinnedSslCertificateArrayList[0] as Array<*>
@@ -222,7 +222,7 @@ class PinnedMismatchPagerAdapter(private val context: Context, private val layou
         domainNameStringBuilder.setSpan(blueColorSpan, domainNameLabel.length, domainNameStringBuilder.length, Spanned.SPAN_INCLUSIVE_INCLUSIVE)
 
         // Color coordinate the IP addresses if they are pinned.
-        if (nestedScrollWebView.hasPinnedIpAddresses()) {
+        if (!nestedScrollWebView.pinnedIpAddresses.equals("")) {
             if (nestedScrollWebView.currentIpAddresses == nestedScrollWebView.pinnedIpAddresses) {
                 ipAddressesStringBuilder.setSpan(blueColorSpan, ipAddressesLabel.length, ipAddressesStringBuilder.length, Spanned.SPAN_INCLUSIVE_INCLUSIVE)
             } else {