From 5ea7913a41953d04bb292ead24cb9ccb947bfda3 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Sat, 11 Feb 2017 02:58:22 +0100 Subject: [PATCH] wear actionstringhandler use correct actualBG() --- .../androidaps/plugins/Wear/ActionStringHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/ActionStringHandler.java b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/ActionStringHandler.java index f2abf45b02..12f7122a8b 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/ActionStringHandler.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/ActionStringHandler.java @@ -22,6 +22,7 @@ import info.nightscout.androidaps.Config; import info.nightscout.androidaps.Constants; import info.nightscout.androidaps.MainApp; import info.nightscout.androidaps.R; +import info.nightscout.androidaps.data.GlucoseStatus; import info.nightscout.androidaps.data.PumpEnactResult; import info.nightscout.androidaps.db.BgReading; import info.nightscout.androidaps.db.TempTarget; @@ -196,7 +197,7 @@ public class ActionStringHandler { sendError("No profile found!"); return; } - BgReading bgReading = MainApp.getDbHelper().actualBg(); + BgReading bgReading = GlucoseStatus.actualBg(); if(bgReading==null && useBG){ sendError("No recent BG to base calculation on!"); return; }