From e49d430a508b642bf73ddd017aa53582f7d218c5 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 27 Mar 2018 20:16:33 +0200 Subject: [PATCH] revert DetailedBulusInflo cloning --- .../androidaps/data/DetailedBolusInfo.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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