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

Commit

Permalink
Fix: Missing bindings (EXPOSUREAPP-14868) (#5871)
Browse files Browse the repository at this point in the history
* Fix increased risk missing binding

* Fix other states
  • Loading branch information
mtwalli authored Feb 27, 2023
1 parent 397902f commit dfaaeca
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ class IncreasedRiskBox(
detailsIcon.isGone = isInDetailsMode
rowTracingDays.isGone = !isInDetailsMode
updateAction.isGone = !showUpdateButton
rowTimeFetched.setText(getTimeFetched(context))

rowContactLast.setText(getRiskContactLast(context))
rowContactLast.isGone = getRiskContactLast(context) == null

rowContact.setText(getRiskContactBody(context))
rowContact.contentDescription = getRiskContactBodyDescription(context)
rowContact.isGone = getRiskContactBody(context) == null
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ class TracingDisabledBox(
) -> Unit = { item, _ ->
item.state.apply {
detailsIcon.isGone = isInDetailsMode
enableTracingAction.isGone = isInDetailsMode
enableTracingAction.isGone = !showEnableTracingButton
rowTimeFetched.setText(getTimeFetched(context))
riskCardRowSavedRisk.setText(getLastRiskState(context))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class TracingFailedBox(
item.state.apply {
riskCardHeaderIcon.isGone = isInDetailsMode
riskCardButtonUpdate.isGone = !showRestartButton
riskCardButtonUpdate.isGone = isInDetailsMode
riskCardHeaderIcon.isGone = isInDetailsMode
riskCardRowTimeFetched.setText(getTimeFetched(context))
riskCardRowSavedRisk.setText(getLastRiskState(context))
}
}

Expand Down

0 comments on commit dfaaeca

Please sign in to comment.