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

Missing tracing duration on low risk detail screen (EXPOSUREAPP-5092) #2326

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import android.view.View
import androidx.databinding.BindingAdapter
import de.rki.coronawarnapp.util.recyclerview.ThrottledClickListener

@BindingAdapter("visible")
fun View.setVisible(visible: Boolean) {
ralfgehrer marked this conversation as resolved.
Show resolved Hide resolved
visibility = if (visible) View.VISIBLE else View.GONE
}

@BindingAdapter("gone")
fun View.setGone(gone: Boolean) {
visibility = if (gone) View.GONE else View.VISIBLE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/row_saved_days"
gone="@{state.getRiskContactLast(context) != null}"
visible="@{state.getRiskContactLast(context) == null || state.inDetailsMode}"
ralfgehrer marked this conversation as resolved.
Show resolved Hide resolved
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
Expand Down