Closed halbag closed 2 years ago
As a quick fix; changing BloodGlucoseDelta.roundedMmol to the following helped me
private fun roundedMmol(bg: BloodGlucose): Double {
val mmol : Double = bg.glucoseLevel_mgdl / BloodGlucose.MMOLL_TO_MGDL
val bd : BigDecimal = BigDecimal.valueOf(mmol).setScale(1, RoundingMode.HALF_UP)
return bd.toDouble()
}
Thanks for the report and suggested fix @halbag, I'll prioritise getting this addressed.
That should rollout to play store shortly as version 1.3.2.
Do let me know if you spot any more issues.
The watchface stopped working on my Samsung Galaxy 4 (German Locale) since introduciton of the blood glucose delta display. Apparently a number format issue causing to a fatal exception. Below the debug output from the device. Please notice, the device is in German locale, thus decimal separator is a comma (,) instead of a dot (.)