revert DetailedBulusInflo cloning

This commit is contained in:
Milos Kozak 2018-03-27 20:16:33 +02:00
parent cb4b117152
commit e49d430a50

View file

@ -32,8 +32,22 @@ public class DetailedBolusInfo {
public long deliverAt = 0; // SMB should be delivered within 1 min from this time
public DetailedBolusInfo copy() {
Cloner cloner = new Cloner();
return cloner.deepClone(this);
DetailedBolusInfo n = new DetailedBolusInfo();
n.date = date;
n.eventType = eventType;
n.insulin = insulin;
n.carbs = carbs;
n.source = source;
n.isValid = isValid;
n.glucose = glucose;
n.glucoseType = glucoseType;
n.carbTime = carbTime;
n.boluscalc = boluscalc;
n.context = context;
n.pumpId = pumpId;
n.isSMB = isSMB;
n.deliverAt = deliverAt;
return n;
}
@Override