From 7a7f75db01dde85610c993be4226b0231f9c973a Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Thu, 3 Aug 2017 03:22:30 +0200 Subject: [PATCH] fix cancel real temp basals from actions --- .../androidaps/plugins/Actions/ActionsFragment.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Actions/ActionsFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Actions/ActionsFragment.java index 5a8b7017fa..c143b9d7f9 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Actions/ActionsFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Actions/ActionsFragment.java @@ -214,6 +214,17 @@ public class ActionsFragment extends SubscriberFragment implements View.OnClickL }); } break; + case R.id.actions_canceltempbasal: + if (MainApp.getConfigBuilder().isInHistoryRealTempBasalInProgress()) { + sHandler.post(new Runnable() { + @Override + public void run() { + pump.cancelTempBasal(true); + Answers.getInstance().logCustom(new CustomEvent("CancelExtended")); + } + }); + } + break; case R.id.actions_settempbasal: NewTempBasalDialog newTempDialog = new NewTempBasalDialog(); newTempDialog.show(manager, "NewTempDialog");