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