1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-25 16:50:44 +02:00

Fossil HR: fixed on-device confirmation for older firmwares

This commit is contained in:
Daniel Dakhno 2021-12-19 12:51:30 +01:00
parent c8ceb4e44d
commit ee9d1155ba

View File

@ -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);