From c34b9aeb76fb7daa1fb6b6ed738a78058677e607 Mon Sep 17 00:00:00 2001 From: Mohamed Date: Mon, 27 Feb 2023 12:30:44 +0100 Subject: [PATCH] Fix: Update button based on background modes (EXPOSUREAPP-14864) (#5870) * Revert booleans * Revert group flag --------- Co-authored-by: Alex Paulescu --- .../tracing/ui/details/TracingDetailsFragment.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/tracing/ui/details/TracingDetailsFragment.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/tracing/ui/details/TracingDetailsFragment.kt index 6d192e3e82d..d3bfba0d407 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/tracing/ui/details/TracingDetailsFragment.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/tracing/ui/details/TracingDetailsFragment.kt @@ -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)