do not display last connection if the pod is not activated

This commit is contained in:
Andrei Vereha 2021-06-25 23:26:38 +02:00
parent 4e4cc4cdfa
commit 80c24a23dc

View file

@ -386,9 +386,7 @@ class OmnipodDashOverviewFragment : DaggerFragment() {
podInfoBinding.lastConnection.setTextColor(lastConnectionColor)
} else {
podInfoBinding.lastConnection.setTextColor(Color.WHITE)
podInfoBinding.lastConnection.text = readableDuration(
Duration(podStateManager.lastUpdatedSystem, System.currentTimeMillis())
)
podInfoBinding.lastConnection.text = PLACEHOLDER
}
}