mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 09:01:55 +01:00
Fix crash when no activity samples during workout
This commit is contained in:
parent
c37a622f96
commit
d1426595e6
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user