Skip to content

Commit

Permalink
Prosposed fix for #428. Min max colors were inverted when not using m…
Browse files Browse the repository at this point in the history
…gDl units
  • Loading branch information
Chris Walters committed Jul 23, 2018
1 parent 963b7a1 commit 708c1e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 708c1e7

Please sign in to comment.