From 86b494229e7d537a91cd3fe06de69295bde33908 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 25 Feb 2019 20:11:21 +0100 Subject: [PATCH] Fix graph scale with no data --- .../androidaps/plugins/Overview/graphData/GraphData.java | 2 ++ 1 file changed, 2 insertions(+) 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 a4b3fc597a..2bd7790c37 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 @@ -78,6 +78,8 @@ public class GraphData { if (bgReadingsArray == null || bgReadingsArray.size() == 0) { if (L.isEnabled(L.OVERVIEW)) log.debug("No BG data."); + maxY = 10; + minY = 0; return; }