1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-04 01:09:47 +01:00

Charts: Also count steps for not worn samples

The Mi Band 5 also seems to display those steps
It could also be that the sample type is wrong in Gadgetbridge
This commit is contained in:
Andreas Shimokawa 2021-02-05 19:17:35 +01:00
parent 092d527158
commit bf9b45f964

View File

@ -111,6 +111,10 @@ public class ActivityAnalysis {
if (activity.getTotalSeconds() > 0) { if (activity.getTotalSeconds() > 0) {
result.addAmount(activity); result.addAmount(activity);
} }
if (notWorn.getTotalSeconds() > 0) {
result.addAmount(notWorn);
}
result.calculatePercentages(); result.calculatePercentages();
return result; return result;