Close bolus progress dialog better in case of error.

This commit is contained in:
Johannes Mockenhaupt 2017-10-28 11:46:54 +02:00
parent 36d5c4d806
commit 4befa38d46
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
2 changed files with 4 additions and 3 deletions

View file

@ -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;

View file

@ -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);