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:
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