From 708c1e7f63e55cf4fb7bf30b7b28c9632dac68cd Mon Sep 17 00:00:00 2001 From: Chris Walters Date: Mon, 23 Jul 2018 14:15:49 +0100 Subject: [PATCH] Prosposed fix for #428. Min max colors were inverted when not using mgDl units --- .../java/org/glucosio/android/fragment/OverviewFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/glucosio/android/fragment/OverviewFragment.java b/app/src/main/java/org/glucosio/android/fragment/OverviewFragment.java index 29f0c13f..3784d38b 100644 --- a/app/src/main/java/org/glucosio/android/fragment/OverviewFragment.java +++ b/app/src/main/java/org/glucosio/android/fragment/OverviewFragment.java @@ -289,8 +289,8 @@ public void onNothingSelected(AdapterView parent) { ll1 = new LimitLine((float) minGlucoseValue); ll2 = new LimitLine((float) maxGlucoseValue); } else { - ll1 = new LimitLine((float) GlucosioConverter.glucoseToMmolL(maxGlucoseValue), getString(R.string.reading_high)); - ll2 = new LimitLine((float) GlucosioConverter.glucoseToMmolL(minGlucoseValue), getString(R.string.reading_low)); + ll1 = new LimitLine((float) GlucosioConverter.glucoseToMmolL(minGlucoseValue), getString(R.string.reading_low)); + ll2 = new LimitLine((float) GlucosioConverter.glucoseToMmolL(maxGlucoseValue), getString(R.string.reading_high)); } ll1.setLineWidth(0.8f);