use of sugar.free.sightparser.applayer.messages.remote_control.ExtendedBolusMessage in project SightRemote by TebbeUbben.
the class ExtendedBolusActivity method onClick.
@Override
public void onClick(View view) {
ExtendedBolusMessage message = new ExtendedBolusMessage();
message.setAmount(bolusAmountPicker.getPickerValue());
message.setDuration(durationPicker.getPickerValue());
SingleMessageTaskRunner taskRunner = new SingleMessageTaskRunner(getServiceConnector(), message);
(confirmationDialog = new ConfirmationDialog(this, HTMLUtil.getHTML(R.string.extended_bolus_confirmation, UnitFormatter.formatUnits(bolusAmountPicker.getPickerValue()), UnitFormatter.formatDuration(durationPicker.getPickerValue())), () -> {
showLoadingIndicator();
taskRunner.fetch(ExtendedBolusActivity.this);
})).show();
}
Aggregations