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

Commit

Permalink
Fix: Update button based on background modes (EXPOSUREAPP-14864) (#5870)
Browse files Browse the repository at this point in the history
* Revert booleans

* Revert group flag

---------

Co-authored-by: Alex Paulescu <[email protected]>
  • Loading branch information
mtwalli and SamuraiKek authored Feb 27, 2023
1 parent dfaaeca commit c34b9ae
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ class TracingDetailsFragment : Fragment(R.layout.tracing_details_fragment_layout
with(binding) {
toolbar.setBackgroundColor(it.getRiskColor(requireContext()))
toolbar.setTitleTextColor(it.getStableTextColor(requireContext()))
riskDetailsButton.isGone = it.isRiskLevelButtonGroupVisible()
riskDetailsButtonEnableTracing.isGone = it.isRiskDetailsEnableTracingButtonVisible()
riskDetailsButtonUpdate.isGone = it.isRiskDetailsUpdateButtonVisible()
riskDetailsButton.isGone = !it.isRiskLevelButtonGroupVisible()
riskDetailsButtonEnableTracing.isGone = !it.isRiskDetailsEnableTracingButtonVisible()
riskDetailsButtonUpdate.isGone = !it.isRiskDetailsUpdateButtonVisible()
riskDetailsButtonUpdate.isEnabled = it.isUpdateButtonEnabled()
riskDetailsButtonUpdate.text = it.getUpdateButtonText(requireContext())
toolbar.navigationIcon = closeIcon(it)
Expand Down

0 comments on commit c34b9ae

Please sign in to comment.