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:
parent
b87667e78d
commit
56c8901ba1
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user