mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-27 19:15:50 +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;
|
return activitySamplesData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// We failed to find a heart rate dataset, append ours
|
// We failed to find a heart rate dataset. We can't append ours, or it will crash
|
||||||
dataSets.add(heartRateSet);
|
//dataSets.add(heartRateSet);
|
||||||
return activitySamplesData;
|
return activitySamplesData;
|
||||||
} else {
|
} else {
|
||||||
final LineData lineData = new LineData(Collections.singletonList(heartRateSet));
|
final LineData lineData = new LineData(Collections.singletonList(heartRateSet));
|
||||||
|
Loading…
Reference in New Issue
Block a user