Prevent crash in Omnipod fragment when no Pod is attached
This commit is contained in:
parent
90387a052d
commit
3c95bb11ce
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue