From d55c3483d0d29353ae13e04400e974fcad4de9dd Mon Sep 17 00:00:00 2001 From: David Walsh Date: Mon, 16 Mar 2020 13:59:50 -0500 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/9177, https://github.com/mozilla-mobile/fenix/issues/8248 - Hide empty verified by block when no cert --- .../org/mozilla/fenix/settings/quicksettings/WebsiteInfoView.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/mozilla/fenix/settings/quicksettings/WebsiteInfoView.kt b/app/src/main/java/org/mozilla/fenix/settings/quicksettings/WebsiteInfoView.kt index 0b48c7b390..daeb8cdf05 100644 --- a/app/src/main/java/org/mozilla/fenix/settings/quicksettings/WebsiteInfoView.kt +++ b/app/src/main/java/org/mozilla/fenix/settings/quicksettings/WebsiteInfoView.kt @@ -12,6 +12,7 @@ import androidx.annotation.DrawableRes import androidx.annotation.StringRes import androidx.appcompat.content.res.AppCompatResources import androidx.core.content.ContextCompat +import androidx.core.view.isVisible import kotlinx.android.extensions.LayoutContainer import kotlinx.android.synthetic.main.quicksettings_website_info.view.* import org.mozilla.fenix.R @@ -52,6 +53,7 @@ class WebsiteInfoView( private fun bindCertificateName(cert: String) { val certificateLabel = view.context.getString(R.string.certificate_info_verified_by, cert) view.certificateInfo.text = certificateLabel + view.certificateInfo.isVisible = cert.isNotEmpty() } private fun bindSecurityInfo(