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
|
var text = PLACEHOLDER
|
||||||
val textColor: Int
|
val textColor: Int
|
||||||
|
|
||||||
if (podStateManager.isTempBasalCertain) {
|
if (!podStateManager.isPodActivationCompleted || podStateManager.isTempBasalCertain) {
|
||||||
textColor = Color.WHITE
|
textColor = Color.WHITE
|
||||||
} else {
|
} else {
|
||||||
textColor = Color.RED
|
textColor = Color.RED
|
||||||
|
|
Loading…
Reference in a new issue