Skip to content

Commit

Permalink
Update datacapture/src/main/java/com/google/android/fhir/datacapture/…
Browse files Browse the repository at this point in the history
…views/factories/QuantityViewHolderFactory.kt

Co-authored-by: Jing Tang <jingtang@google.com>
  • Loading branch information
maimoonak and jingtang10 authored Feb 9, 2024
1 parent 9f04ff5 commit 528bdba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ internal object QuantityViewHolderFactory :
}
?: questionnaireViewItem.draftAnswer?.let { if (it is Coding) it else null }
?: questionnaireViewItem.questionnaireItem
.takeIf { it.hasInitial() }
?.initialFirstRep
.initial
?.firstOrNull()
?.valueQuantity
?.toCoding()
unitAutoCompleteTextView.setText(unit?.display ?: "")
Expand Down

0 comments on commit 528bdba

Please sign in to comment.