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 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
|
||||
|
|
Loading…
Reference in a new issue