1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-04 17:27:24 +01:00

Fossil HR: added activity tracking for battery level updates

This commit is contained in:
Daniel Dakhno 2020-03-29 03:10:30 +02:00
parent 159a937cab
commit ae503ec456

View File

@ -79,7 +79,8 @@ public class QHybridCoordinator extends AbstractDeviceCoordinator {
@Override @Override
public boolean supportsActivityDataFetching() { public boolean supportsActivityDataFetching() {
return false; GBDevice connectedDevice = GBApplication.app().getDeviceManager().getSelectedDevice();
return connectedDevice != null && connectedDevice.getType() == DeviceType.FOSSILQHYBRID && connectedDevice.getState() == GBDevice.State.INITIALIZED;
} }
@Override @Override