diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java
index f70e157589..c709b32a2c 100644
--- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java
+++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java
@@ -332,7 +332,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
EventOverviewBolusProgress event = EventOverviewBolusProgress.getInstance();
switch (state) {
case PROGRAMMING:
- event.status = MainApp.sResources.getString(R.string.bolusprogramming);
+ event.status = MainApp.sResources.getString(R.string.combo_programming_bolus);
break;
case DELIVERING:
event.status = String.format(MainApp.sResources.getString(R.string.bolusdelivering), delivered);
@@ -403,7 +403,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
@NonNull
private PumpEnactResult deliverBolus(final DetailedBolusInfo detailedBolusInfo) {
- CommandResult bolusCmdResult = runCommand("Bolusing", new CommandExecution() {
+ CommandResult bolusCmdResult = runCommand(MainApp.sResources.getString(R.string.combo_action_bolusing), new CommandExecution() {
@Override
public CommandResult execute() {
return ruffyScripter.deliverBolus(detailedBolusInfo.insulin,
@@ -475,7 +475,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
}
final int finalAdjustedPercent = adjustedPercent;
- CommandResult commandResult = runCommand("Setting TBR", new CommandExecution() {
+ CommandResult commandResult = runCommand(MainApp.sResources.getString(R.string.combo_action_setting_tbr), new CommandExecution() {
@Override
public CommandResult execute() {
return ruffyScripter.setTbr(finalAdjustedPercent, durationInMinutes);
@@ -528,7 +528,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
if (activeTemp == null || userRequested) {
/* v1 compatibility to sync DB to pump if they diverged (activeTemp == null) */
log.debug("cancelTempBasal: hard-cancelling TBR since user requested");
- commandResult = runCommand("Cancelling TBR", new CommandExecution() {
+ commandResult = runCommand(MainApp.sResources.getString(R.string.combo_action_cancelling_tbr), new CommandExecution() {
@Override
public CommandResult execute() {
return ruffyScripter.cancelTbr();
@@ -555,8 +555,8 @@ public class ComboPlugin implements PluginBase, PumpInterface {
// Set a fake neutral temp to avoid TBR cancel alert. Decide 90% vs 110% based on
// on whether the TBR we're cancelling is above or below 100%.
final int percentage = (activeTemp.percentRate > 100) ? 110 : 90;
- log.debug("cancelTempBasal: changing tbr to " + percentage + "% for 15 mins.");
- commandResult = runCommand("Setting TBR", new CommandExecution() {
+ log.debug("cancelTempBasal: changing TBR to " + percentage + "% for 15 mins.");
+ commandResult = runCommand(MainApp.sResources.getString(R.string.combo_action_setting_tbr), new CommandExecution() {
@Override
public CommandResult execute() {
return ruffyScripter.setTbr(percentage, 15);
@@ -634,7 +634,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
pump.lastCmdResult = commandResult;
pump.state = commandResult.state;
- // TODO are there cases when this check should NOT be performed? perform this explicitly or have a flag to skip this?
+ // TODO call this explicitely when needed after/before calling this?
if (checkTbrMisMatch) {
checkForTbrMismatch();
}
diff --git a/app/src/main/java/info/nightscout/androidaps/receivers/KeepAliveReceiver.java b/app/src/main/java/info/nightscout/androidaps/receivers/KeepAliveReceiver.java
index 5b65352501..5c7138a661 100644
--- a/app/src/main/java/info/nightscout/androidaps/receivers/KeepAliveReceiver.java
+++ b/app/src/main/java/info/nightscout/androidaps/receivers/KeepAliveReceiver.java
@@ -62,6 +62,7 @@ public class KeepAliveReceiver extends BroadcastReceiver {
boolean isStatusOutdated = lastConnection.getTime() + 15 * 60 * 1000L < System.currentTimeMillis();
boolean isBasalOutdated = Math.abs(profile.getBasal() - pump.getBaseBasalRate()) > pump.getPumpDescription().basalStep;
+ // TODO triggers on init already; don't (both missed readings and pump comms)
SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(MainApp.instance().getApplicationContext());
if (isStatusOutdated && lastConnection.getTime() + 25 * 60 * 1000 < System.currentTimeMillis()) {
// TODO the alarm will trigger every 5m until the problem is resolved. That can get annoying quiet quickly if
@@ -69,7 +70,8 @@ public class KeepAliveReceiver extends BroadcastReceiver {
// suppress this for another 25m if the message was dismissed?
// The alarm sound is played back as regular media, that means it might be muted if sound level is at 0
// a simple 'Enable/disable alarms' button on the actions tab?
- Notification n = new Notification(Notification.PUMP_UNREACHABLE, "Pump unreachable", Notification.URGENT);
+ Notification n = new Notification(Notification.PUMP_UNREACHABLE,
+ MainApp.sResources.getString(R.string.combo_pump_state_unreachable), Notification.URGENT);
n.soundId = R.raw.alarm;
MainApp.bus().post(new EventNewNotification(n));
} else if (SP.getBoolean("syncprofiletopump", false) && !pump.isThisProfileSet(profile)) {
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index 722e17d7ee..248c2f3f21 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -637,4 +637,9 @@
Letzter Bolus
Letzte Verbindung
Statistiken
+ Bolusabgabe wird vorbereitet
+ Aktualisierung
+ TBR wird abgebrochen
+ TBR wird gesetzt
+ Bolus wird abgegeben
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 2024506f79..e94e8a5794 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -748,10 +748,12 @@
reuse
Controls from Watch
Set Temp-Targets and enter Treatments from the watch.
+
Connection timed out
Stopping bolus delivery
Bolus delivery stopped
- Programming pump for bolusing
+
+ Programming pump for bolusing
Refresh
Stats
State
@@ -765,5 +767,9 @@
Suspended due to error
Suspended by user
Running
+ Refreshing
+ Cancelling TBR
+ Setting TBR
+ Bolusing