- problem with settings

This commit is contained in:
Andy Rozman 2020-03-07 19:50:51 +00:00
parent bba4c36294
commit 44cc3f6119
3 changed files with 3 additions and 24 deletions

View file

@ -911,18 +911,6 @@ public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPump
private CustomAction customActionResetRLConfig = new CustomAction( private CustomAction customActionResetRLConfig = new CustomAction(
R.string.medtronic_custom_action_reset_rileylink, OmnipodCustomActionType.ResetRileyLinkConfiguration, true); R.string.medtronic_custom_action_reset_rileylink, OmnipodCustomActionType.ResetRileyLinkConfiguration, true);
// protected CustomAction customActionPairAndPrime = new CustomAction(
// R.string.omnipod_cmd_init_pod, OmnipodCustomActionType.PairAndPrime, true);
//
// protected CustomAction customActionFillCanullaSetBasalProfile = new CustomAction(
// R.string.omnipod_cmd_init_pod, OmnipodCustomActionType.FillCanulaSetBasalProfile, false);
//
// protected CustomAction customActionDeactivatePod = new CustomAction(
// R.string.omnipod_cmd_deactivate_pod, OmnipodCustomActionType.DeactivatePod, false);
//
// protected CustomAction customActionResetPod = new CustomAction(
// R.string.omnipod_cmd_reset_pod, OmnipodCustomActionType.ResetPodStatus, true);
@Override @Override
public List<CustomAction> getCustomActions() { public List<CustomAction> getCustomActions() {
@ -930,10 +918,6 @@ public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPump
if (customActions == null) { if (customActions == null) {
this.customActions = Arrays.asList( this.customActions = Arrays.asList(
customActionResetRLConfig //, customActionResetRLConfig //,
//customActionPairAndPrime, //
//customActionFillCanullaSetBasalProfile, //
//customActionDeactivatePod, //
//customActionResetPod
); );
} }
@ -974,11 +958,6 @@ public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPump
} }
} }
public void setEnableCustomAction(OmnipodCustomActionType customAction, boolean isEnabled) {
}
@Override @Override
public boolean isFixedUnreachableAlertTimeoutExceeded(long unreachableTimeoutMilliseconds) { public boolean isFixedUnreachableAlertTimeoutExceeded(long unreachableTimeoutMilliseconds) {
getPodPumpStatusObject(); getPodPumpStatusObject();

View file

@ -1679,7 +1679,7 @@
<!-- Omnipod - Error --> <!-- Omnipod - Error -->
<string name="omnipod_error_operation_not_possible_no_configuration">Operation is not possible.\n\n You need to configure Omnipod first, before you can use this operation.</string> <string name="omnipod_error_operation_not_possible_no_configuration">Operation is not possible.\n\nYou need to configure Omnipod first, before you can use this operation.</string>
<string name="omnipod_error_operation_not_possible_no_profile">Operation is not possible.\n\n You need to wait few minutes, until AAPS tries to set profile for first time.</string> <string name="omnipod_error_operation_not_possible_no_profile">Operation is not possible.\n\n You need to wait few minutes, until AAPS tries to set profile for first time.</string>
<string name="omnipod_error_illegal_init_action_type">Illegal PodInitActionType: %1$s</string> <string name="omnipod_error_illegal_init_action_type">Illegal PodInitActionType: %1$s</string>
<string name="omnipod_error_pod_not_attached">No active pod.</string> <string name="omnipod_error_pod_not_attached">No active pod.</string>

View file

@ -37,9 +37,9 @@
android:title="@string/omnipod_config_pod_debugging_options_enabled" /> android:title="@string/omnipod_config_pod_debugging_options_enabled" />
<SwitchPreference <SwitchPreference
android:defaultValue="false" android:defaultValue="true"
android:key="@string/key_omnipod_timechange_enabled" android:key="@string/key_omnipod_timechange_enabled"
android:title="@string/omnipod_config_pod_debugging_options_enabled" /> android:title="@string/omnipod_config_timechange_enabled" />
</PreferenceCategory> </PreferenceCategory>
</PreferenceScreen> </PreferenceScreen>