From 7b5a289fc1109439b08bfe55c63185dc3321258e Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 8 Jan 2017 00:45:43 +0100 Subject: [PATCH] run aps only on interested treatments --- .../info/nightscout/androidaps/Services/DataService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/Services/DataService.java b/app/src/main/java/info/nightscout/androidaps/Services/DataService.java index 734e3defaf..7ba381f130 100644 --- a/app/src/main/java/info/nightscout/androidaps/Services/DataService.java +++ b/app/src/main/java/info/nightscout/androidaps/Services/DataService.java @@ -346,7 +346,6 @@ public class DataService extends IntentService { handleAddedTreatment(trstr); } } - scheduleTreatmentChange(); } catch (Exception e) { e.printStackTrace(); } @@ -368,7 +367,6 @@ public class DataService extends IntentService { handleChangedTreatment(trstr); } } - scheduleTreatmentChange(); } catch (Exception e) { e.printStackTrace(); } @@ -392,7 +390,6 @@ public class DataService extends IntentService { removeTreatmentFromDb(_id); } } - scheduleTreatmentChange(); } catch (Exception e) { e.printStackTrace(); } @@ -471,6 +468,7 @@ public class DataService extends IntentService { int updated = MainApp.getDbHelper().getDaoTreatments().update(stored); if (Config.logIncommingData) log.debug("Records updated: " + updated); + scheduleTreatmentChange(); } } else { if (Config.logIncommingData) @@ -494,6 +492,7 @@ public class DataService extends IntentService { } catch (SQLException e) { e.printStackTrace(); } + scheduleTreatmentChange(); } } @@ -547,6 +546,7 @@ public class DataService extends IntentService { } catch (SQLException e) { e.printStackTrace(); } + scheduleTreatmentChange(); } public void handleDanaRHistoryRecords(JSONObject trJson) throws JSONException, SQLException {