From ec6491fcb77ac21c6a591de4a90ebac92a8ed11f Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sat, 15 Jul 2017 18:19:10 +0200 Subject: [PATCH] Return absolute TBR rate in PumpState. --- app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java | 1 + .../java/de/jotomo/ruffyscripter/commands/NoOpCommand.java | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 app/src/main/java/de/jotomo/ruffyscripter/commands/NoOpCommand.java diff --git a/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java b/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java index d5a04bdc2e..f9fe9893ba 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java @@ -321,6 +321,7 @@ public class RuffyScripter { state.tbrPercent = displayedTbr.intValue(); MenuTime durationMenuTime = ((MenuTime) currentMenu.getAttribute(MenuAttribute.RUNTIME)); state.tbrRemainingDuration = durationMenuTime.getHour() * 60 + durationMenuTime.getMinute(); + state.tbrRate = ((double) currentMenu.getAttribute(MenuAttribute.BASAL_RATE)); } return state; } diff --git a/app/src/main/java/de/jotomo/ruffyscripter/commands/NoOpCommand.java b/app/src/main/java/de/jotomo/ruffyscripter/commands/NoOpCommand.java new file mode 100644 index 0000000000..25f3e2127c --- /dev/null +++ b/app/src/main/java/de/jotomo/ruffyscripter/commands/NoOpCommand.java @@ -0,0 +1,4 @@ +package de.jotomo.ruffyscripter.commands; + +public class NoOpCommand { +}