diff --git a/app/src/main/java/info/nightscout/androidaps/data/DetailedBolusInfo.java b/app/src/main/java/info/nightscout/androidaps/data/DetailedBolusInfo.java index 2841420d16..3935b17b8a 100644 --- a/app/src/main/java/info/nightscout/androidaps/data/DetailedBolusInfo.java +++ b/app/src/main/java/info/nightscout/androidaps/data/DetailedBolusInfo.java @@ -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