From 7849f45b739535185942bb7d33af0d91c5eb8c66 Mon Sep 17 00:00:00 2001 From: Andrei Vereha Date: Wed, 27 Oct 2021 09:18:07 +0200 Subject: [PATCH] count the number of pod activations --- .../activation/viewmodel/action/DashInsertCannulaViewModel.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/ui/wizard/activation/viewmodel/action/DashInsertCannulaViewModel.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/ui/wizard/activation/viewmodel/action/DashInsertCannulaViewModel.kt index f22cddd96a..2e3e979f8e 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/ui/wizard/activation/viewmodel/action/DashInsertCannulaViewModel.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/ui/wizard/activation/viewmodel/action/DashInsertCannulaViewModel.kt @@ -19,6 +19,7 @@ import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.pod.state.Omn import info.nightscout.androidaps.plugins.pump.omnipod.dash.util.Constants import info.nightscout.androidaps.plugins.pump.omnipod.dash.util.I8n import info.nightscout.androidaps.plugins.pump.omnipod.dash.util.mapProfileToBasalProgram +import info.nightscout.androidaps.utils.FabricPrivacy import info.nightscout.androidaps.utils.resources.ResourceHelper import info.nightscout.androidaps.utils.sharedPreferences.SP import io.reactivex.Single @@ -34,6 +35,7 @@ class DashInsertCannulaViewModel @Inject constructor( private val rxBus: RxBus, private val sp: SP, private val resourceHelper: ResourceHelper, + private val fabricPrivacy: FabricPrivacy, injector: HasAndroidInjector, logger: AAPSLogger @@ -100,6 +102,7 @@ class DashInsertCannulaViewModel @Inject constructor( ) rxBus.send(EventDismissNotification(Notification.OMNIPOD_POD_NOT_ATTACHED)) + fabricPrivacy.logCustom("OmnipodDashPodActivated") source.onSuccess(PumpEnactResult(injector).success(true)) } )