From af563474d51a19750547fa77b8d41ced4ce19f14 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Tue, 1 May 2018 18:18:06 +0200 Subject: [PATCH] Skip predictions below 40. --- .../androidaps/plugins/Overview/graphData/GraphData.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/graphData/GraphData.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/graphData/GraphData.java index a15fef8882..177e7f9642 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/graphData/GraphData.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/graphData/GraphData.java @@ -77,7 +77,10 @@ public class GraphData { } if (predictions != null) { Collections.sort(predictions, (o1, o2) -> Double.compare(o1.getX(), o2.getX())); - bgListArray.addAll(predictions); + for (BgReading prediction : predictions) { + if (prediction.value >= 40) + bgListArray.add(prediction); + } } maxBgValue = Profile.fromMgdlToUnits(maxBgValue, units);