From ac038a92524b60a2279fb1431891141bd3dc38d8 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 4 Jun 2017 22:27:36 +0200 Subject: [PATCH] bigger bg dots on tablet --- .../androidaps/plugins/Overview/OverviewFragment.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java index 78d90e44bf..d186d7078d 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java @@ -1437,25 +1437,26 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, low = lowArray.toArray(low); high = highArray.toArray(high); + boolean isTablet = MainApp.sResources.getBoolean(R.bool.isTablet); if (inRange.length > 0) { bgGraph.addSeries(seriesInRage = new PointsGraphSeries<>(inRange)); seriesInRage.setShape(PointsGraphSeries.Shape.POINT); - seriesInRage.setSize(5); + seriesInRage.setSize(isTablet ? 8 : 5); seriesInRage.setColor(MainApp.sResources.getColor(R.color.inrange)); } if (low.length > 0) { bgGraph.addSeries(seriesLow = new PointsGraphSeries<>(low)); seriesLow.setShape(PointsGraphSeries.Shape.POINT); - seriesLow.setSize(5); + seriesLow.setSize(isTablet ? 8 : 5); seriesLow.setColor(MainApp.sResources.getColor(R.color.low)); } if (high.length > 0) { bgGraph.addSeries(seriesHigh = new PointsGraphSeries<>(high)); seriesHigh.setShape(PointsGraphSeries.Shape.POINT); - seriesHigh.setSize(5); + seriesHigh.setSize(isTablet ? 8 : 5); seriesHigh.setColor(MainApp.sResources.getColor(R.color.high)); }