Skip to content

Commit

Permalink
Added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidotarma committed Aug 8, 2021
1 parent 8416383 commit b7e5e5f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import dgca.verifier.app.android.verification.certs.VaccinationViewHolder
import dgca.verifier.app.android.verification.rules.RuleValidationResultCard
import dgca.verifier.app.android.verification.rules.RuleValidationResultsAdapter
import dgca.verifier.app.android.verification.rules.toRuleValidationResultCard
import timber.log.Timber


@ExperimentalUnsignedTypes
Expand Down Expand Up @@ -108,6 +109,7 @@ class VerificationDialogFragment : BottomSheetDialogFragment() {
binding.progressBar.isVisible = it
})

Timber.d("onViewCreated, args.qrCodeText: ${args.qrCodeText}")
viewModel.init(args.qrCodeText, args.countryIsoCode)
}

Expand All @@ -123,6 +125,8 @@ class VerificationDialogFragment : BottomSheetDialogFragment() {
binding.personFullName.text = certificateModel.getFullName()
toggleButton(certificateModel)

Timber.d("handleVerificationResult, certificateModel: ${certificateModel}")

if (verificationData.getGeneralResult() != GeneralVerificationResult.FAILED) {
showUserData(certificateModel)

Expand Down Expand Up @@ -281,6 +285,7 @@ class VerificationDialogFragment : BottomSheetDialogFragment() {


private fun showUserData(certificate: CertificateModel) {
Timber.d("showUserData, certificate: ${certificate}")
binding.personStandardisedFamilyName.text = certificate.person.standardisedFamilyName
binding.personStandardisedGivenName.text = certificate.person.standardisedGivenName
if (certificate.person.standardisedGivenName?.isNotBlank() == true) {
Expand Down

0 comments on commit b7e5e5f

Please sign in to comment.