- fix bolus saving

This commit is contained in:
Andy Rozman 2019-05-18 20:28:25 +01:00
parent 26d02c0062
commit 5a7146d3a9
2 changed files with 2 additions and 2 deletions

View file

@ -187,10 +187,10 @@ public class MainApp extends Application {
pluginsList.add(CareportalPlugin.getPlugin());
if (Config.PUMPDRIVERS) pluginsList.add(ComboPlugin.getPlugin());
if (Config.MDI) pluginsList.add(MDIPlugin.getPlugin());
pluginsList.add(VirtualPumpPlugin.getPlugin());
if (Config.PUMPDRIVERS && engineeringMode) {
pluginsList.add(MedtronicPumpPlugin.getPlugin());
}
pluginsList.add(VirtualPumpPlugin.getPlugin());
if (Config.APS) pluginsList.add(LoopPlugin.getPlugin());
if (Config.APS) pluginsList.add(OpenAPSMAPlugin.getPlugin());
if (Config.APS) pluginsList.add(OpenAPSAMAPlugin.getPlugin());

View file

@ -479,7 +479,7 @@ public class TreatmentService extends OrmLiteBaseService<DatabaseHelper> {
}
}
if (!oldTreatment._id.equals(newTreatment._id)) {
if (!StringUtils.equals(oldTreatment._id, newTreatment._id)) {
if (StringUtils.isBlank(oldTreatment._id)) {
oldTreatment._id = newTreatment._id;
changed = true;