-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for recordOnly bolus when pump is disconnected or suspended #3254
Conversation
Tested with ComboV2, works well. Thanks! |
I generally have nothing against but it must visible on first sight that is record only. Maybe even on icon. Otherwise it can lead to mistakes. |
For example the text / checkbox "do not bolus ..." could be red?! |
Currently upon entering the bolus, it is clearly stated in the confirmation screen. |
Based on what I see on my daughter, nobody reads |
@@ -583,8 +583,22 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList | |||
&& preferences.get(BooleanKey.OverviewShowTreatmentButton)).toVisibility() | |||
binding.buttonsLayout.wizardButton.visibility = (!loop.isDisconnected && pump.isInitialized() && !pump.isSuspended() && profile != null | |||
&& preferences.get(BooleanKey.OverviewShowWizardButton)).toVisibility() | |||
binding.buttonsLayout.insulinButton.visibility = (!loop.isDisconnected && pump.isInitialized() && !pump.isSuspended() && profile != null | |||
&& preferences.get(BooleanKey.OverviewShowInsulinButton)).toVisibility() | |||
binding.buttonsLayout.insulinButton.visibility = (profile != null && preferences.get(BooleanKey.OverviewShowInsulinButton)).toVisibility() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.toVisibility()
should not be there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see it's on more places here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its needed here because:
Type mismatch.
Required:
Int
Found:
Boolean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, my mistake. There is a bracket I didn't see
Thx, fixed |
Quality Gate failedFailed conditions |
This feature was high on my list: |
This PR allows to record a bolus using the Insulin button when loop is disconnected or pump is suspended/not active
Have seen this request on discord some time ago, and experienced it myself.
Consider following scenarios:
There are other scenarios as well when you want to do a pen bolus while disconnected.
Tested:
Update: