Overview: process buttons on pump change
This commit is contained in:
parent
3c2991dd28
commit
90b101e77f
1 changed files with 5 additions and 0 deletions
|
@ -56,6 +56,7 @@ import app.aaps.core.interfaces.rx.events.EventAcceptOpenLoopChange
|
|||
import app.aaps.core.interfaces.rx.events.EventBucketedDataCreated
|
||||
import app.aaps.core.interfaces.rx.events.EventEffectiveProfileSwitchChanged
|
||||
import app.aaps.core.interfaces.rx.events.EventExtendedBolusChange
|
||||
import app.aaps.core.interfaces.rx.events.EventInitializationChanged
|
||||
import app.aaps.core.interfaces.rx.events.EventMobileToWear
|
||||
import app.aaps.core.interfaces.rx.events.EventNewOpenLoopNotification
|
||||
import app.aaps.core.interfaces.rx.events.EventPreferenceChange
|
||||
|
@ -308,6 +309,10 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
|||
overviewData.pumpStatus = it.getStatus(requireContext())
|
||||
updatePumpStatus()
|
||||
}, fabricPrivacy::logException)
|
||||
disposable += rxBus
|
||||
.toObservable(EventInitializationChanged::class.java)
|
||||
.observeOn(aapsSchedulers.main)
|
||||
.subscribe({ processButtonsVisibility() }, fabricPrivacy::logException)
|
||||
disposable += rxBus
|
||||
.toObservable(EventEffectiveProfileSwitchChanged::class.java)
|
||||
.observeOn(aapsSchedulers.io)
|
||||
|
|
Loading…
Reference in a new issue