Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Hide notification badge on certificate detail view (EXPOSUREAPP-14335) #5726

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fun IncludeCertificateQrcodeCardBinding.bindValidityViews(
when (certificate.displayedState()) {
is ExpiringSoon -> {
setQrTitle(certificate, qrTitle, context)
notificationBadge.isVisible = certificate.hasNotificationBadge
notificationBadge.isVisible = false
statusIcon.constraintLayoutParams.verticalBias = 0f
statusIcon.setImageDrawable(context.getDrawableCompat(R.drawable.ic_av_timer))
statusTitle.text = context.getString(
Expand All @@ -72,7 +72,7 @@ fun IncludeCertificateQrcodeCardBinding.bindValidityViews(

is Expired -> {
setQrTitle(certificate, qrTitle, context)
notificationBadge.isVisible = certificate.hasNotificationBadge
notificationBadge.isVisible = false
statusIcon.constraintLayoutParams.verticalBias = 1.0f
statusIcon.setImageDrawable(context.getDrawableCompat(R.drawable.ic_error_outline))
statusTitle.text = context.getText(R.string.certificate_qr_expired)
Expand Down