From 887a1672dceffd40dc28708781bfe6badf9fa896 Mon Sep 17 00:00:00 2001 From: Bart Sopers Date: Sun, 23 Aug 2020 15:01:08 +0200 Subject: [PATCH] Don't force overview to refresh immediately in Omnipod events --- .../androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java | 4 ++-- .../plugins/pump/omnipod/dialogs/PodManagementActivity.kt | 1 - .../plugins/pump/omnipod/driver/ui/OmnipodUIComm.java | 2 +- 3 files changed, 3 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 e4993f0d50..2c7252ca4a 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 @@ -586,7 +586,7 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, if (tbrCurrent != null && !enforceNew) { if (Round.isSame(tbrCurrent.absoluteRate, absoluteRate)) { aapsLogger.info(LTag.PUMP, "setTempBasalAbsolute - No enforceNew and same rate. Exiting."); - rxBus.send(new EventRefreshOverview("Omnipod command: TBR", true)); + rxBus.send(new EventRefreshOverview("Omnipod command: SetTemporaryBasal", false)); return new PumpEnactResult(getInjector()).success(true).enacted(false); } } @@ -624,7 +624,7 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, if (tbrCurrent == null) { aapsLogger.info(LTag.PUMP, "cancelTempBasal - TBR already canceled."); - rxBus.send(new EventRefreshOverview("Omnipod command: TBR", true)); + rxBus.send(new EventRefreshOverview("Omnipod command: CancelTemporaryBasal", false)); return new PumpEnactResult(getInjector()).success(true).enacted(false); } diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dialogs/PodManagementActivity.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dialogs/PodManagementActivity.kt index 7bee093b0d..4620dd3bc2 100644 --- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dialogs/PodManagementActivity.kt +++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dialogs/PodManagementActivity.kt @@ -11,7 +11,6 @@ import com.atech.android.library.wizardpager.data.WizardPagerSettings import com.atech.android.library.wizardpager.defs.WizardStepsWayType import dagger.android.HasAndroidInjector import info.nightscout.androidaps.activities.NoSplashAppCompatActivity -import info.nightscout.androidaps.events.EventRefreshOverview import info.nightscout.androidaps.interfaces.CommandQueueProvider import info.nightscout.androidaps.plugins.bus.RxBusWrapper import info.nightscout.androidaps.plugins.pump.common.events.EventRileyLinkDeviceStatusChange diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/ui/OmnipodUIComm.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/ui/OmnipodUIComm.java index f0c9b254ee..7b0fe0ecfd 100644 --- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/ui/OmnipodUIComm.java +++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/ui/OmnipodUIComm.java @@ -48,7 +48,7 @@ public class OmnipodUIComm { aapsLogger.warn(LTag.PUMP, "Reply not received for " + commandType); } - rxBus.send(new EventRefreshOverview("Omnipod command: "+ commandType.name(), true)); + rxBus.send(new EventRefreshOverview("Omnipod command: " + commandType.name(), false)); return task; }