1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-13 00:10:37 +02:00

Mobile: Fixed regression in biometric check

Due to f0ade02435
This commit is contained in:
Laurent Cozic
2023-05-29 13:14:09 +01:00
parent 192bfb5555
commit b19f1a1023
3 changed files with 14 additions and 8 deletions

View File

@ -75,7 +75,9 @@ shared.checkSyncConfigMessages = function(comp) {
return output;
};
shared.updateSettingValue = function(comp, key, value) {
shared.updateSettingValue = function(comp, key, value, callback = null) {
if (!callback) callback = () => {};
comp.setState(state => {
// @react-native-community/slider (4.4.0) will emit a valueChanged event
// when the component is mounted, even though the value hasn't changed.
@ -99,7 +101,7 @@ shared.updateSettingValue = function(comp, key, value) {
settings: settings,
changedSettingKeys: changedSettingKeys,
};
});
}, callback);
};
shared.scheduleSaveSettings = function(comp) {