diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java index 9c2f5e5e22..55a037cd4b 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java @@ -741,6 +741,7 @@ public class NewNSTreatmentDialog extends DialogFragment implements View.OnClick profileSwitch.timeshift = timeshift; profileSwitch.percentage = percentage; MainApp.getConfigBuilder().addToHistoryProfileSwitch(profileSwitch); + FabricPrivacy.getInstance().logCustom(new CustomEvent("ProfileSwitch")); } public static void doProfileSwitch(final int duration, final int percentage, final int timeshift) { @@ -757,6 +758,7 @@ public class NewNSTreatmentDialog extends DialogFragment implements View.OnClick profileSwitch.timeshift = timeshift; profileSwitch.percentage = percentage; MainApp.getConfigBuilder().addToHistoryProfileSwitch(profileSwitch); + FabricPrivacy.getInstance().logCustom(new CustomEvent("ProfileSwitch")); } else { log.error("No profile switch existing"); } diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java index 5bba016848..40f2518ce7 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java @@ -668,7 +668,6 @@ public class ConfigBuilderPlugin implements PluginBase, TreatmentsInterface { MainApp.bus().post(new EventNewBasalProfile()); } }); - FabricPrivacy.getInstance().logCustom(new CustomEvent("ProfileSwitch")); } @Override