mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Pebble: map walk and run to TYPE_ACTIVITY instead of UNKNOWN
fixes speed zones chart being empty for pebble health
This commit is contained in:
parent
7cce2aeb8b
commit
b1d1e701f9
@ -37,11 +37,13 @@ import nodomain.freeyourgadget.gadgetbridge.model.ActivityKind;
|
||||
public class PebbleHealthSampleProvider extends AbstractSampleProvider<PebbleHealthActivitySample> {
|
||||
public static final int TYPE_LIGHT_SLEEP = 1;
|
||||
public static final int TYPE_DEEP_SLEEP = 2;
|
||||
public static final int TYPE_LIGHT_NAP = 3; //probably
|
||||
public static final int TYPE_DEEP_NAP = 4; //probably
|
||||
public static final int TYPE_WALK = 5; //probably
|
||||
public static final int TYPE_LIGHT_NAP = 3;
|
||||
public static final int TYPE_DEEP_NAP = 4;
|
||||
public static final int TYPE_WALK = 5;
|
||||
public static final int TYPE_RUN = 6;
|
||||
public static final int TYPE_ACTIVITY = -1;
|
||||
|
||||
|
||||
protected final float movementDivisor = 8000f;
|
||||
|
||||
public PebbleHealthSampleProvider(GBDevice device, DaoSession session) {
|
||||
@ -114,6 +116,8 @@ public class PebbleHealthSampleProvider extends AbstractSampleProvider<PebbleHea
|
||||
case TYPE_LIGHT_SLEEP:
|
||||
return ActivityKind.TYPE_LIGHT_SLEEP;
|
||||
case TYPE_ACTIVITY:
|
||||
case TYPE_WALK:
|
||||
case TYPE_RUN:
|
||||
return ActivityKind.TYPE_ACTIVITY;
|
||||
default:
|
||||
return ActivityKind.TYPE_UNKNOWN;
|
||||
|
Loading…
Reference in New Issue
Block a user