26 lines
796 B
Java
26 lines
796 B
Java
package nodomain.freeyourgadget.gadgetbridge.service.devices.pebble;
|
|
|
|
import java.util.UUID;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.GBApplication;
|
|
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
|
import nodomain.freeyourgadget.gadgetbridge.util.Prefs;
|
|
|
|
abstract class DatalogSessionPebbleHealth extends DatalogSession {
|
|
|
|
private final GBDevice mDevice;
|
|
|
|
DatalogSessionPebbleHealth(byte id, UUID uuid, int tag, byte itemType, short itemSize, GBDevice device) {
|
|
super(id, uuid, tag, itemType, itemSize);
|
|
mDevice = device;
|
|
}
|
|
|
|
public GBDevice getDevice() {
|
|
return mDevice;
|
|
}
|
|
|
|
protected boolean isPebbleHealthEnabled() {
|
|
Prefs prefs = GBApplication.getPrefs();
|
|
return prefs.getBoolean("pebble_sync_health", true);
|
|
}
|
|
} |