Use string resource.

This commit is contained in:
Johannes Mockenhaupt 2017-08-27 12:43:52 +02:00
parent c2ae0b7289
commit 1d53305ff9
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
2 changed files with 2 additions and 2 deletions

View file

@ -257,7 +257,7 @@ public class LoopPlugin implements PluginBase {
return; return;
} }
// check rate for constrais // check rate for constraints
final APSResult resultAfterConstraints = result.clone(); final APSResult resultAfterConstraints = result.clone();
resultAfterConstraints.rate = constraintsInterface.applyBasalConstraints(resultAfterConstraints.rate); resultAfterConstraints.rate = constraintsInterface.applyBasalConstraints(resultAfterConstraints.rate);

View file

@ -440,7 +440,7 @@ public class ActionStringHandler {
ret += "OPEN LOOP\n"; ret += "OPEN LOOP\n";
} }
final APSInterface aps = MainApp.getConfigBuilder().getActiveAPS(); final APSInterface aps = MainApp.getConfigBuilder().getActiveAPS();
ret += "APS: " + ((aps == null) ? "NO APS SELECTED!" : ((PluginBase) aps).getName()); ret += "APS: " + ((aps == null) ? R.string.noapsselected : ((PluginBase) aps).getName());
if (activeloop.lastRun != null) { if (activeloop.lastRun != null) {
if (activeloop.lastRun.lastAPSRun != null) if (activeloop.lastRun.lastAPSRun != null)
ret += "\nLast Run: " + DateUtil.timeString(activeloop.lastRun.lastAPSRun); ret += "\nLast Run: " + DateUtil.timeString(activeloop.lastRun.lastAPSRun);