8000 Remove extra space QrCode (EXPOSUREAPP-13693) by mtwalli · Pull Request #5892 · corona-warn-app/cwa-app-android · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Remove extra space QrCode (EXPOSUREAPP-13693) #5892

Merged
merged 2 commits into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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 @@ -153,4 +153,8 @@ class CertificateOverviewQrCardView @JvmOverloads constructor(
PersonCertificateCard.Item.CertificateSelection.SECOND -> R.id.second_certificate_button
PersonCertificateCard.Item.CertificateSelection.THIRD -> R.id.third_certificate_button
}

fun checkBarrierMargin() {
binding.badgesBarrier.setDpMargin(if (binding.maskBadge.isGone && binding.statusBadge.isGone) 0 else 8)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ fun PersonOverviewItemBinding.setUIState(
setVisibility(valid)
bindButtonToggleGroup(secondCertificate, thirdCertificate, firstCertificate, item)
setOnClickListener { item.onCovPassInfoAction }
checkBarrierMargin()
}

when (firstCertificate.cwaCertificate.displayedState()) {
Expand All @@ -70,7 +71,6 @@ fun PersonOverviewItemBinding.setUIState(
else -> updateExpirationViews()
}
}

private fun PersonOverviewItemBinding.updateExpirationViews(
badgeCount: Int = 1,
verticalBias: Float = 0f,
Expand Down
0