Prevent crash in Omnipod fragment when no Pod is attached

This commit is contained in:
Bart Sopers 2020-11-20 21:04:42 +01:00
parent 90387a052d
commit 3c95bb11ce

View file

@ -441,7 +441,7 @@ class OmnipodOverviewFragment : DaggerFragment() {
var text = PLACEHOLDER
val textColor: Int
if (podStateManager.isTempBasalCertain) {
if (!podStateManager.isPodActivationCompleted || podStateManager.isTempBasalCertain) {
textColor = Color.WHITE
} else {
textColor = Color.RED