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:
|
||||
event.status = MainApp.sResources.getString(R.string.bolusstopped);
|
||||
break;
|
||||
default:
|
||||
// no state, just percent below
|
||||
case FINISHED:
|
||||
// no state, just percent below to close bolus progress dialog
|
||||
break;
|
||||
}
|
||||
event.percent = percent;
|
||||
|
|
|
@ -6,7 +6,8 @@ public interface BolusProgressReporter {
|
|||
DELIVERING,
|
||||
DELIVERED,
|
||||
STOPPING,
|
||||
STOPPED
|
||||
STOPPED,
|
||||
FINISHED
|
||||
}
|
||||
|
||||
void report(State state, int percent, double delivered);
|
||||
|
|
Loading…
Reference in a new issue