Close bolus progress dialog better in case of error.
This commit is contained in:
parent
36d5c4d806
commit
4befa38d46
|
@ -346,8 +346,8 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
||||||
case STOPPED:
|
case STOPPED:
|
||||||
event.status = MainApp.sResources.getString(R.string.bolusstopped);
|
event.status = MainApp.sResources.getString(R.string.bolusstopped);
|
||||||
break;
|
break;
|
||||||
default:
|
case FINISHED:
|
||||||
// no state, just percent below
|
// no state, just percent below to close bolus progress dialog
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
event.percent = percent;
|
event.percent = percent;
|
||||||
|
|
|
@ -6,7 +6,8 @@ public interface BolusProgressReporter {
|
||||||
DELIVERING,
|
DELIVERING,
|
||||||
DELIVERED,
|
DELIVERED,
|
||||||
STOPPING,
|
STOPPING,
|
||||||
STOPPED
|
STOPPED,
|
||||||
|
FINISHED
|
||||||
}
|
}
|
||||||
|
|
||||||
void report(State state, int percent, double delivered);
|
void report(State state, int percent, double delivered);
|
||||||
|
|
Loading…
Reference in a new issue