fix: eros time color

This commit is contained in:
Andries Smit 2022-07-12 15:37:56 +02:00
parent b025fea343
commit d78f685f1f

View file

@ -287,9 +287,9 @@ class OmnipodErosOverviewFragment : DaggerFragment() {
podInfoBinding.timeOnPod.setTextColor(
rh.gac(context,
if (podStateManager.timeDeviatesMoreThan(OmnipodConstants.TIME_DEVIATION_THRESHOLD)) {
R.attr.defaultTextColor
} else {
R.attr.warningColor
} else {
R.attr.defaultTextColor
})
)
val expiresAt = podStateManager.expiresAt