This commit is contained in:
Bart Sopers 2020-09-01 20:27:05 +02:00
parent 01c4d34df8
commit d1074ac3eb

View file

@ -153,7 +153,7 @@ class OmnipodFragment : DaggerFragment() {
.toObservable(EventOmnipodPumpValuesChanged::class.java) .toObservable(EventOmnipodPumpValuesChanged::class.java)
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe({ .subscribe({
updateOmipodStatus() updateOmnipodStatus()
updatePodActionButtons() updatePodActionButtons()
}, { fabricPrivacy.logException(it) }) }, { fabricPrivacy.logException(it) })
disposables += rxBus disposables += rxBus
@ -180,7 +180,7 @@ class OmnipodFragment : DaggerFragment() {
private fun updateUi() { private fun updateUi() {
updateRileyLinkStatus() updateRileyLinkStatus()
updateOmipodStatus() updateOmnipodStatus()
updatePodActionButtons() updatePodActionButtons()
updateQueueStatus() updateQueueStatus()
} }
@ -203,7 +203,7 @@ class OmnipodFragment : DaggerFragment() {
omnipod_rl_status.setTextColor(if (rileyLinkServiceState.isError || rileyLinkError != null) Color.RED else Color.WHITE) omnipod_rl_status.setTextColor(if (rileyLinkServiceState.isError || rileyLinkError != null) Color.RED else Color.WHITE)
} }
private fun updateOmipodStatus() { private fun updateOmnipodStatus() {
updateLastConnection() updateLastConnection()
updatePodStatus() updatePodStatus()