1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-24 02:46:50 +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: