From 02ce6f5c7417aa5cc369fc5a7df7ae80cfab6c49 Mon Sep 17 00:00:00 2001 From: Bart Sopers Date: Tue, 1 Dec 2020 22:49:33 +0100 Subject: [PATCH] Use custom Reset RileyLink icon for Omnipod and rename badly named local variable --- .../plugins/pump/omnipod/OmnipodPumpPlugin.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java index 5d5196caa8..9462d3ebba 100644 --- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java +++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java @@ -141,7 +141,7 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, private final PumpType pumpType = PumpType.Insulet_Omnipod; private final List customActions = Collections.singletonList(new CustomAction( - R.string.omnipod_custom_action_reset_rileylink, OmnipodCustomActionType.RESET_RILEY_LINK_CONFIGURATION, true)); + R.string.omnipod_custom_action_reset_rileylink, OmnipodCustomActionType.RESET_RILEY_LINK_CONFIGURATION, R.drawable.icon_pod_activity_reset_rileylink_config, true)); private final CompositeDisposable disposables = new CompositeDisposable(); private final NSUpload nsUpload; @@ -810,12 +810,12 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, @Override public void executeCustomAction(CustomActionType customActionType) { - OmnipodCustomActionType mcat = (OmnipodCustomActionType) customActionType; + OmnipodCustomActionType omnipodCustomActionType = (OmnipodCustomActionType) customActionType; - if (mcat == OmnipodCustomActionType.RESET_RILEY_LINK_CONFIGURATION) { + if (omnipodCustomActionType == OmnipodCustomActionType.RESET_RILEY_LINK_CONFIGURATION) { serviceTaskExecutor.startTask(new ResetRileyLinkConfigurationTask(getInjector())); } else { - aapsLogger.warn(LTag.PUMP, "Unknown custom action: " + mcat); + aapsLogger.warn(LTag.PUMP, "Unknown custom action: " + omnipodCustomActionType); } }