1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 10:35:50 +01:00

Fix crash when no activity samples during workout

This commit is contained in:
José Rebelo 2024-09-21 19:07:50 +01:00
parent c37a622f96
commit d1426595e6

View File

@ -283,8 +283,8 @@ public class ActivitySummariesChartFragment extends AbstractActivityChartFragmen
return activitySamplesData;
}
}
// We failed to find a heart rate dataset, append ours
dataSets.add(heartRateSet);
// We failed to find a heart rate dataset. We can't append ours, or it will crash
//dataSets.add(heartRateSet);
return activitySamplesData;
} else {
final LineData lineData = new LineData(Collections.singletonList(heartRateSet));