Wear: handle QuickWizard as BolusWizard

This commit is contained in:
Milos Kozak 2023-10-10 23:14:02 +02:00
parent 543c8c7f73
commit ae3b66d5c0

View file

@ -495,11 +495,12 @@ class DataHandlerMobile @Inject constructor(
val message = rh.gs(R.string.quick_wizard_message, quickWizardEntry.buttonText(), wizard.calculatedTotalInsulin, quickWizardEntry.carbs()) + val message = rh.gs(R.string.quick_wizard_message, quickWizardEntry.buttonText(), wizard.calculatedTotalInsulin, quickWizardEntry.carbs()) +
"\n_____________\n" + wizard.explainShort() "\n_____________\n" + wizard.explainShort()
lastBolusWizard = wizard
rxBus.send( rxBus.send(
EventMobileToWear( EventMobileToWear(
EventData.ConfirmAction( EventData.ConfirmAction(
rh.gs(app.aaps.core.ui.R.string.confirm).uppercase(), message, rh.gs(app.aaps.core.ui.R.string.confirm).uppercase(), message,
returnCommand = EventData.ActionBolusConfirmed(insulinAfterConstraints, carbsAfterConstraints) returnCommand = EventData.ActionWizardConfirmed(wizard.timeStamp)
) )
) )
) )