Report implicitly cancelled tbr when deactivating pod or resetting pod state
This commit is contained in:
parent
05d09e3530
commit
a17defb817
|
@ -217,7 +217,6 @@ public class AapsOmnipodManager implements OmnipodCommunicationManagerInterface
|
|||
long time = System.currentTimeMillis();
|
||||
try {
|
||||
delegate.deactivatePod();
|
||||
addSuccessToHistory(time, PodHistoryEntryType.DeactivatePod, null);
|
||||
} catch (Exception ex) {
|
||||
String comment = handleAndTranslateException(ex);
|
||||
podInitReceiver.returnInitTaskStatus(PodInitActionType.DeactivatePodWizardStep, false, comment);
|
||||
|
@ -225,6 +224,10 @@ public class AapsOmnipodManager implements OmnipodCommunicationManagerInterface
|
|||
return new PumpEnactResult().success(false).enacted(false).comment(comment);
|
||||
}
|
||||
|
||||
addSuccessToHistory(time, PodHistoryEntryType.DeactivatePod, null);
|
||||
|
||||
reportImplicitlyCanceledTbr();
|
||||
|
||||
podInitReceiver.returnInitTaskStatus(PodInitActionType.DeactivatePodWizardStep, true, null);
|
||||
|
||||
OmnipodUtil.setPodSessionState(null);
|
||||
|
@ -264,6 +267,8 @@ public class AapsOmnipodManager implements OmnipodCommunicationManagerInterface
|
|||
public PumpEnactResult resetPodStatus() {
|
||||
delegate.resetPodState();
|
||||
|
||||
reportImplicitlyCanceledTbr();
|
||||
|
||||
OmnipodUtil.setPodSessionState(null);
|
||||
|
||||
addSuccessToHistory(System.currentTimeMillis(), PodHistoryEntryType.ResetPodState, null);
|
||||
|
|
Loading…
Reference in a new issue