Add QuickWizard Source (final solution)
# Conflicts: # app/src/main/java/info/nightscout/androidaps/utils/wizard/BolusWizard.kt # app/src/main/java/info/nightscout/androidaps/utils/wizard/QuickWizardEntry.kt
This commit is contained in:
parent
61d84e66fe
commit
07e2e0eaf4
1 changed files with 5 additions and 3 deletions
|
@ -346,7 +346,10 @@ class BolusWizard @Inject constructor(
|
|||
bolusCalculatorResult = createBolusCalculatorResult()
|
||||
notes = this@BolusWizard.notes
|
||||
//uel.log(Action.BOLUS_ADVISOR, notes, XXXValueWithUnit.TherapyEventType(eventType), XXXValueWithUnit.Insulin(insulinAfterConstraints))
|
||||
uel.log(Action.BOLUS_ADVISOR, notes, ValueWithUnit(Sources.WizardDialog), ValueWithUnit(eventType.toDBbEventType().text, Units.TherapyEvent), ValueWithUnit(insulinAfterConstraints, Units.U))
|
||||
uel.log(Action.BOLUS_ADVISOR, notes,
|
||||
ValueWithUnit(if (quickWizard) Sources.QuickWizard else Sources.WizardDialog),
|
||||
ValueWithUnit(eventType.toDBbEventType().text, Units.TherapyEvent),
|
||||
ValueWithUnit(insulinAfterConstraints, Units.U))
|
||||
if (insulin > 0) {
|
||||
commandQueue.bolus(this, object : Callback() {
|
||||
override fun run() {
|
||||
|
@ -421,8 +424,7 @@ class BolusWizard @Inject constructor(
|
|||
ValueWithUnit(eventType.toDBbEventType().text, Units.TherapyEvent),
|
||||
ValueWithUnit(insulinAfterConstraints, Units.U, insulinAfterConstraints != 0.0),
|
||||
ValueWithUnit(this@BolusWizard.carbs, Units.G, this@BolusWizard.carbs != 0),
|
||||
ValueWithUnit(carbTime, Units.M, carbTime != 0)
|
||||
)
|
||||
ValueWithUnit(carbTime, Units.M, carbTime != 0))
|
||||
commandQueue.bolus(this, object : Callback() {
|
||||
override fun run() {
|
||||
if (!result.success) {
|
||||
|
|
Loading…
Reference in a new issue