mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 21:32:57 +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:
parent
092d527158
commit
bf9b45f964
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user