Merge branch 'omnipod_eros_dev' into omnipod_eros_dev_remove_duplicate_verification

This commit is contained in:
Bart Sopers 2020-11-11 20:31:28 +01:00
commit 5ab24e99dd

View file

@ -199,11 +199,7 @@ class OverviewMenus @Inject constructor(
menu.add(resourceHelper.gs(R.string.enableloop))
}
if (!loopPlugin.isDisconnected) {
if(pumpDescription.pumpType != PumpType.Insulet_Omnipod) {
// Don't show the disconnect menu for Omnipod,
// as an Omnipod is attached to your body and cannot be physically disconnected.
showSuspendPump(menu, pumpDescription)
}
showSuspendPump(menu, pumpDescription)
} else {
menu.add(resourceHelper.gs(R.string.reconnect))
}