From 2642a128290b04576b04bb5f7853d0a8dbf99189 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Wed, 14 Jun 2017 22:18:01 +0200 Subject: [PATCH] schedule correct scheduleExtendedBolusChange --- .../info/nightscout/androidaps/db/DatabaseHelper.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java b/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java index e98946c8da..0c414a64f7 100644 --- a/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java +++ b/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java @@ -1166,7 +1166,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper { getDaoExtendedBolus().create(extendedBolus); log.debug("EXTENDEDBOLUS: New record from: " + Source.getString(extendedBolus.source) + " " + extendedBolus.toString()); updateEarliestDataChange(extendedBolus.date); - scheduleTreatmentChange(); + scheduleExtendedBolusChange(); return true; } if (extendedBolus.source == Source.NIGHTSCOUT) { @@ -1180,7 +1180,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper { log.debug("EXTENDEDBOLUS: Updating record by date from: " + Source.getString(extendedBolus.source) + " " + old.toString()); updateEarliestDataChange(oldDate); updateEarliestDataChange(old.date); - scheduleTreatmentChange(); + scheduleExtendedBolusChange(); return true; } return false; @@ -1202,7 +1202,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper { log.debug("EXTENDEDBOLUS: Updating record by _id from: " + Source.getString(extendedBolus.source) + " " + old.toString()); updateEarliestDataChange(oldDate); updateEarliestDataChange(old.date); - scheduleTreatmentChange(); + scheduleExtendedBolusChange(); return true; } } @@ -1210,14 +1210,14 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper { getDaoExtendedBolus().create(extendedBolus); log.debug("EXTENDEDBOLUS: New record from: " + Source.getString(extendedBolus.source) + " " + extendedBolus.toString()); updateEarliestDataChange(extendedBolus.date); - scheduleTreatmentChange(); + scheduleExtendedBolusChange(); return true; } if (extendedBolus.source == Source.USER) { getDaoExtendedBolus().create(extendedBolus); log.debug("EXTENDEDBOLUS: New record from: " + Source.getString(extendedBolus.source) + " " + extendedBolus.toString()); updateEarliestDataChange(extendedBolus.date); - scheduleTreatmentChange(); + scheduleExtendedBolusChange(); return true; } } catch (SQLException e) {