revert DetailedBulusInflo cloning
This commit is contained in:
parent
cb4b117152
commit
e49d430a50
1 changed files with 16 additions and 2 deletions
|
@ -32,8 +32,22 @@ public class DetailedBolusInfo {
|
||||||
public long deliverAt = 0; // SMB should be delivered within 1 min from this time
|
public long deliverAt = 0; // SMB should be delivered within 1 min from this time
|
||||||
|
|
||||||
public DetailedBolusInfo copy() {
|
public DetailedBolusInfo copy() {
|
||||||
Cloner cloner = new Cloner();
|
DetailedBolusInfo n = new DetailedBolusInfo();
|
||||||
return cloner.deepClone(this);
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue