Add QuickWizard Source (not sure if it's the best solution...)
This commit is contained in:
parent
6c8b4dfab0
commit
d607b855b0
2 changed files with 4 additions and 3 deletions
|
@ -154,7 +154,7 @@ class TreatmentDialog : DialogFragmentWithDate() {
|
|||
uel.log(action,
|
||||
ValueWithUnit(Sources.TreatmentDialog),
|
||||
ValueWithUnit(detailedBolusInfo.timestamp, Units.Timestamp, eventTimeChanged),
|
||||
ValueWithUnit(R.string.record, Units.R_String),
|
||||
ValueWithUnit(R.string.record, Units.R_String, insulin != 0.0),
|
||||
ValueWithUnit(insulinAfterConstraints, Units.U, insulin != 0.0),
|
||||
ValueWithUnit(carbsAfterConstraints, Units.G, carbs != 0))
|
||||
if (detailedBolusInfo.insulin > 0)
|
||||
|
|
|
@ -63,6 +63,7 @@ class BolusWizard @Inject constructor(
|
|||
@Inject lateinit var carbTimer: CarbTimer
|
||||
@Inject lateinit var glucoseStatusProvider: GlucoseStatusProvider
|
||||
@Inject lateinit var repository: AppRepository
|
||||
@Inject lateinit var quickWizard: QuickWizard
|
||||
@Inject lateinit var nsUpload: NSUpload
|
||||
|
||||
private val disposable = CompositeDisposable()
|
||||
|
@ -415,8 +416,8 @@ class BolusWizard @Inject constructor(
|
|||
carbs.equals(0.0) -> Action.BOLUS
|
||||
else -> Action.TREATMENT
|
||||
}
|
||||
uel.log(action, notes,
|
||||
ValueWithUnit(Sources.WizardDialog),
|
||||
uel.log(action, if (notes == resourceHelper.gs(R.string.key_quickwizard)) quickWizard.getActive()?.buttonText() else notes,
|
||||
ValueWithUnit(if (notes == resourceHelper.gs(R.string.key_quickwizard)) Sources.QuickWizard else Sources.WizardDialog),
|
||||
ValueWithUnit(eventType.toDBbEventType().text, Units.TherapyEvent),
|
||||
ValueWithUnit(insulinAfterConstraints, Units.U, insulinAfterConstraints != 0.0),
|
||||
ValueWithUnit(this@BolusWizard.carbs, Units.G, this@BolusWizard.carbs != 0),
|
||||
|
|
Loading…
Reference in a new issue