From 56c8901ba1010419a3619717f5f315809dcf3537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sat, 28 Sep 2024 18:12:03 +0100 Subject: [PATCH] Only fake sleep intensity if raw value is negative --- .../activities/charts/AbstractActivityChartFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractActivityChartFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractActivityChartFragment.java index 68354d89c..ad0f9a6e4 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractActivityChartFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractActivityChartFragment.java @@ -212,7 +212,7 @@ public abstract class AbstractActivityChartFragment 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: