mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-26 01:00:52 +02: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);
|
initializeAfterWatchConfirmation(false);
|
||||||
return;
|
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);
|
boolean shouldAuthenticateOnWatch = getDeviceSpecificPreferences().getBoolean("enable_on_device_confirmation", true);
|
||||||
if (!shouldAuthenticateOnWatch) {
|
if (!shouldAuthenticateOnWatch) {
|
||||||
GB.toast("Skipping on-device confirmation", Toast.LENGTH_SHORT, GB.INFO);
|
GB.toast("Skipping on-device confirmation", Toast.LENGTH_SHORT, GB.INFO);
|
||||||
|
Loading…
Reference in New Issue
Block a user