1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 20:36:51 +01:00

Only fake sleep intensity if raw value is negative

This commit is contained in:
José Rebelo 2024-09-28 18:12:03 +01:00
parent b87667e78d
commit 56c8901ba1

View File

@ -212,7 +212,7 @@ public abstract class AbstractActivityChartFragment<D extends ChartsData> extend
int ts = tsTranslation.shorten(sample.getTimestamp());
final float value;
if (type != ActivityKind.NOT_WORN) {
if (ActivityKind.isSleep(type) && sample.getIntensity() <= 0) {
if (ActivityKind.isSleep(type) && sample.getIntensity() < 0) {
switch (type) {
case SLEEP_ANY:
case AWAKE_SLEEP: