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:
parent
ee9d1155ba
commit
2f217b077f
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user