Skip to content

Commit

Permalink
Merge pull request #8 from Shrutipavasiya/DhruvkumarParmar
Browse files Browse the repository at this point in the history
Dhruvkumar parmar
  • Loading branch information
AmadouF authored Feb 17, 2024
2 parents b7dc313 + 0cd66be commit a286ea2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public void configureUI(DataField dataField) {
public static class SensorHeartRate extends SensorStatisticsViewHolder {

@Override

public void onChanged(UnitSystem unitSystem, RecordingData data) {
SensorDataSet sensorDataSet = data.sensorDataSet();
String sensorName = getContext().getString(R.string.value_unknown);
Expand All @@ -41,7 +42,7 @@ public void onChanged(UnitSystem unitSystem, RecordingData data) {
valueAndUnit = StringUtils.getHeartRateParts(getContext(), null);
}

//TODO Loads preference every time
// Load heart rate zones preference every time.
HeartRateZones zones = PreferencesUtils.getHeartRateZones();
int textColor;
if (sensorDataSet != null && sensorDataSet.getHeartRate() != null) {
Expand All @@ -58,6 +59,7 @@ public void onChanged(UnitSystem unitSystem, RecordingData data) {

getBinding().statsValue.setTextColor(textColor);
}

}

public static class SensorCadence extends SensorStatisticsViewHolder {
Expand Down

0 comments on commit a286ea2

Please sign in to comment.