diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSCoordinator.java index d4f723513..08cea4e8a 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSCoordinator.java @@ -92,10 +92,8 @@ public class BangleJSCoordinator extends AbstractDeviceCoordinator { } @Override - public boolean supportsRealtimeData() { - // We could support this easily but I can't figure out how to push the - // act event into real-time data :( - return false; + public boolean supportsRealtimeData() { + return true; } @Override diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSSampleProvider.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSSampleProvider.java index afa0c4eda..0686f2de4 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSSampleProvider.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSSampleProvider.java @@ -28,12 +28,15 @@ import nodomain.freeyourgadget.gadgetbridge.entities.DaoSession; import nodomain.freeyourgadget.gadgetbridge.entities.ID115ActivitySample; import nodomain.freeyourgadget.gadgetbridge.entities.ID115ActivitySampleDao; import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice; +import nodomain.freeyourgadget.gadgetbridge.model.ActivityKind; public class BangleJSSampleProvider extends AbstractSampleProvider { public BangleJSSampleProvider(GBDevice device, DaoSession session) { super(device, session); } + public static final int TYPE_ACTIVITY = 0; + @Override public AbstractDao getSampleDao() { return getSession().getBangleJSActivitySampleDao(); @@ -59,12 +62,17 @@ public class BangleJSSampleProvider extends AbstractSampleProvider