1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 14:32:54 +01:00

Fossil HR: removed find-my-device with older firmwares

This commit is contained in:
Daniel Dakhno 2021-12-19 12:56:47 +01:00
parent ee9d1155ba
commit 2f217b077f

View File

@ -1546,6 +1546,14 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
@Override @Override
public void onFindDevice(boolean start) { public void onFindDevice(boolean start) {
super.onFindDevice(start); super.onFindDevice(start);
boolean versionSupportsConfirmation = getCleanFWVersion().compareTo(new Version("1.0.2.22")) != -1;
if(!versionSupportsConfirmation){
GB.toast("not supported in this version", Toast.LENGTH_SHORT, GB.ERROR);
return;
}
if (start) { if (start) {
queueWrite(new ConfirmOnDeviceRequest()); queueWrite(new ConfirmOnDeviceRequest());
} }