Don't force overview to refresh immediately in Omnipod events
This commit is contained in:
parent
91d0da9f51
commit
887a1672dc
3 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue