1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-10 20:19:32 +01:00

Xiaomi: Disable activity fetching outside of Mi Band 8

It has a lot of issues, and should not be enabled to proceed with a
release.
This commit is contained in:
José Rebelo 2023-12-11 22:16:00 +00:00
parent 6de7af62e3
commit 820956ccdc
2 changed files with 17 additions and 3 deletions

View File

@ -217,18 +217,20 @@ public abstract class XiaomiCoordinator extends AbstractBLEDeviceCoordinator {
@Override @Override
public boolean supportsActivityDataFetching() { public boolean supportsActivityDataFetching() {
return true; // TODO It does, but not yet fully working - only in Mi Band 8
return false;
} }
@Override @Override
public boolean supportsActivityTracking() { public boolean supportsActivityTracking() {
return true; // TODO It does, but not yet fully working - only in Mi Band 8
return false;
} }
@Override @Override
public boolean supportsActivityTracks() { public boolean supportsActivityTracks() {
// TODO It does, but not yet fully working // TODO It does, but not yet fully working
return BuildConfig.DEBUG; return false;
} }
@Override @Override

View File

@ -61,6 +61,18 @@ public class MiBand8Coordinator extends XiaomiCoordinator {
return R.drawable.ic_device_miband6_disabled; return R.drawable.ic_device_miband6_disabled;
} }
@Override
public boolean supportsActivityDataFetching() {
// FIXME still has some issues
return true;
}
@Override
public boolean supportsActivityTracking() {
// FIXME still has some issues
return true;
}
@Override @Override
public boolean supportsMultipleWeatherLocations() { public boolean supportsMultipleWeatherLocations() {
return true; return true;