Bug: textcolor for heartrate zone 1 was ignoring theme.

Fixes #1455.
This commit is contained in:
Dennis Guse
2023-01-27 02:00:38 +01:00
parent bebee59eb2
commit 674d231b7a
3 changed files with 8 additions and 5 deletions
@@ -274,10 +274,10 @@ public abstract class GenericStatisticsViewHolder extends StatisticViewHolder<St
if (sensorDataSet != null && sensorDataSet.getHeartRate() != null) {
valueAndUnit = StringUtils.getHeartRateParts(getContext(), sensorDataSet.getHeartRate().first);
sensorName = sensorDataSet.getHeartRate().second;
textColor = zones.getColorForZone(sensorDataSet.getHeartRate().first);
textColor = zones.getColorForZone(getContext(), sensorDataSet.getHeartRate().first);
} else {
valueAndUnit = StringUtils.getHeartRateParts(getContext(), null);
textColor = zones.getColorForZone(null);
textColor = zones.getColorForZone(getContext(), null);
}
getBinding().statsValue.setText(valueAndUnit.first);