diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java
index f48d7e006d..ad395b121a 100644
--- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java
+++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java
@@ -61,6 +61,7 @@ import info.nightscout.androidaps.plugins.pump.omnipod.util.LogReceiver;
import info.nightscout.androidaps.plugins.pump.omnipod.util.OmnipodConst;
import info.nightscout.androidaps.plugins.pump.omnipod.util.OmnipodUtil;
import info.nightscout.androidaps.plugins.treatments.TreatmentsPlugin;
+import info.nightscout.androidaps.utils.OKDialog;
import info.nightscout.androidaps.utils.SP;
/**
@@ -421,7 +422,9 @@ public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPump
public boolean isThisProfileSet(Profile profile) {
// TODO status was not yet read from pod
+ // TODO maybe not possible, need to see how we will handle that
if (currentProfile == null) {
+ this.currentProfile = profile;
return true;
}
@@ -815,7 +818,12 @@ public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPump
break;
case FillCanulaSetBasalProfile: {
- omnipodUIComm.executeCommand(OmnipodCommandType.FillCanulaAndSetBasalProfile, PodInitActionType.FillCannulaSetBasalProfileWizardStep, this.currentProfile, logReceiver);
+ if (this.currentProfile != null) {
+ omnipodUIComm.executeCommand(OmnipodCommandType.FillCanulaAndSetBasalProfile, PodInitActionType.FillCannulaSetBasalProfileWizardStep, logReceiver, this.currentProfile);
+ } else {
+ OKDialog.show(MainApp.instance().getApplicationContext(), MainApp.gs(R.string.combo_warning),
+ MainApp.gs(R.string.omnipod_error_operation_not_possible_no_profile), null);
+ }
}
break;
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 39259e1c71..e28249ceef 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -4,20 +4,20 @@
Afrikaans
Bulgarian
Dutch
-
+
French
German
Greek
-
+
Chinese
-
+
Italian
-
+
Korean
Lithuanian
Polish
Portuguese
-
+
Romanian
Russian
Slovak
@@ -1662,6 +1662,7 @@
Operation is not possible.\n\n You need to configure Omnipod first, before you can use this operation.
+ Operation is not possible.\n\n You need to wait few minutes, until AAPS tries to set profile for first time.
Init Pod
@@ -1682,7 +1683,6 @@
Pump integration for Omnipod Dash.
-
- %1$d day
- %1$d days