mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-01 14:32:54 +01:00
Fossil HR: fixed on-device confirmation for older firmwares
This commit is contained in:
parent
c8ceb4e44d
commit
ee9d1155ba
@ -220,6 +220,11 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
|
||||
initializeAfterWatchConfirmation(false);
|
||||
return;
|
||||
}
|
||||
boolean versionSupportsConfirmation = getCleanFWVersion().compareTo(new Version("1.0.2.22")) != -1;
|
||||
if(!versionSupportsConfirmation){
|
||||
initializeAfterWatchConfirmation(true);
|
||||
return;
|
||||
}
|
||||
boolean shouldAuthenticateOnWatch = getDeviceSpecificPreferences().getBoolean("enable_on_device_confirmation", true);
|
||||
if (!shouldAuthenticateOnWatch) {
|
||||
GB.toast("Skipping on-device confirmation", Toast.LENGTH_SHORT, GB.INFO);
|
||||
|
Loading…
Reference in New Issue
Block a user