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();
|
long time = System.currentTimeMillis();
|
||||||
try {
|
try {
|
||||||
delegate.deactivatePod();
|
delegate.deactivatePod();
|
||||||
addSuccessToHistory(time, PodHistoryEntryType.DeactivatePod, null);
|
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
String comment = handleAndTranslateException(ex);
|
String comment = handleAndTranslateException(ex);
|
||||||
podInitReceiver.returnInitTaskStatus(PodInitActionType.DeactivatePodWizardStep, false, comment);
|
podInitReceiver.returnInitTaskStatus(PodInitActionType.DeactivatePodWizardStep, false, comment);
|
||||||
|
@ -225,6 +224,10 @@ public class AapsOmnipodManager implements OmnipodCommunicationManagerInterface
|
||||||
return new PumpEnactResult().success(false).enacted(false).comment(comment);
|
return new PumpEnactResult().success(false).enacted(false).comment(comment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addSuccessToHistory(time, PodHistoryEntryType.DeactivatePod, null);
|
||||||
|
|
||||||
|
reportImplicitlyCanceledTbr();
|
||||||
|
|
||||||
podInitReceiver.returnInitTaskStatus(PodInitActionType.DeactivatePodWizardStep, true, null);
|
podInitReceiver.returnInitTaskStatus(PodInitActionType.DeactivatePodWizardStep, true, null);
|
||||||
|
|
||||||
OmnipodUtil.setPodSessionState(null);
|
OmnipodUtil.setPodSessionState(null);
|
||||||
|
@ -264,6 +267,8 @@ public class AapsOmnipodManager implements OmnipodCommunicationManagerInterface
|
||||||
public PumpEnactResult resetPodStatus() {
|
public PumpEnactResult resetPodStatus() {
|
||||||
delegate.resetPodState();
|
delegate.resetPodState();
|
||||||
|
|
||||||
|
reportImplicitlyCanceledTbr();
|
||||||
|
|
||||||
OmnipodUtil.setPodSessionState(null);
|
OmnipodUtil.setPodSessionState(null);
|
||||||
|
|
||||||
addSuccessToHistory(System.currentTimeMillis(), PodHistoryEntryType.ResetPodState, null);
|
addSuccessToHistory(System.currentTimeMillis(), PodHistoryEntryType.ResetPodState, null);
|
||||||
|
|
Loading…
Reference in a new issue