Fix Crash TemporyBasal
Injector missing with extendedbolus
This commit is contained in:
parent
2fb0198418
commit
d44bc87d1b
|
@ -110,6 +110,8 @@ public class TemporaryBasal implements Interval, DbObjectBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public TemporaryBasal(ExtendedBolus extendedBolus) {
|
public TemporaryBasal(ExtendedBolus extendedBolus) {
|
||||||
|
injector = MainApp.instance();
|
||||||
|
injector.androidInjector().inject(this);
|
||||||
double basal = profileFunction.getProfile(extendedBolus.date).getBasal(extendedBolus.date);
|
double basal = profileFunction.getProfile(extendedBolus.date).getBasal(extendedBolus.date);
|
||||||
this.date = extendedBolus.date;
|
this.date = extendedBolus.date;
|
||||||
this.isValid = extendedBolus.isValid;
|
this.isValid = extendedBolus.isValid;
|
||||||
|
|
Loading…
Reference in a new issue