1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +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
public void onFindDevice(boolean 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) {
queueWrite(new ConfirmOnDeviceRequest());
}