Revert "Make the BolusProgress dialog a bit more self-contained."
Breaks dismissal of dialog (only one invocation of
EventDismissBolusprogressIfRunning also sets bolusEnded=true).
This reverts commit c11455dff1
.
This commit is contained in:
parent
c11455dff1
commit
612efa6a13
2 changed files with 3 additions and 3 deletions
|
@ -455,6 +455,7 @@ public class ConfigBuilderPlugin implements PluginBase, PumpInterface, Constrain
|
||||||
|
|
||||||
result = activePump.deliverTreatment(detailedBolusInfo);
|
result = activePump.deliverTreatment(detailedBolusInfo);
|
||||||
|
|
||||||
|
BolusProgressDialog.bolusEnded = true;
|
||||||
MainApp.bus().post(new EventDismissBolusprogressIfRunning(result));
|
MainApp.bus().post(new EventDismissBolusprogressIfRunning(result));
|
||||||
|
|
||||||
mWakeLock.release();
|
mWakeLock.release();
|
||||||
|
|
|
@ -33,8 +33,8 @@ public class BolusProgressDialog extends DialogFragment implements View.OnClickL
|
||||||
BolusProgressHelperActivity helperActivity;
|
BolusProgressHelperActivity helperActivity;
|
||||||
|
|
||||||
static double amount;
|
static double amount;
|
||||||
private static boolean bolusEnded = false;
|
public static boolean bolusEnded = false;
|
||||||
private static boolean running = true;
|
public static boolean running = true;
|
||||||
|
|
||||||
public BolusProgressDialog() {
|
public BolusProgressDialog() {
|
||||||
super();
|
super();
|
||||||
|
@ -124,7 +124,6 @@ public class BolusProgressDialog extends DialogFragment implements View.OnClickL
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void onStatusEvent(final EventDismissBolusprogressIfRunning ev) {
|
public void onStatusEvent(final EventDismissBolusprogressIfRunning ev) {
|
||||||
if(BolusProgressDialog.running){
|
if(BolusProgressDialog.running){
|
||||||
bolusEnded = true;
|
|
||||||
dismiss();
|
dismiss();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue