public async Task UpdateFingerprintAsync() { var current = _fingerprint; if (_fingerprint) { _fingerprint = false; } else if (await _platformUtilsService.SupportsFingerprintAsync()) { _fingerprint = await _platformUtilsService.AuthenticateFingerprintAsync(null, _deviceActionService.DeviceType == Core.Enums.DeviceType.Android? "." : null); } if (_fingerprint == current) { return; } if (_fingerprint) { await _storageService.SaveAsync(Constants.FingerprintUnlockKey, true); } else { await _storageService.RemoveAsync(Constants.FingerprintUnlockKey); } _lockService.FingerprintLocked = false; await _cryptoService.ToggleKeyAsync(); BuildList(); }
public async Task UpdateFingerprintAsync() { var current = _fingerprint; if (_fingerprint) { _fingerprint = false; } else if (await _platformUtilsService.SupportsFingerprintAsync()) { _fingerprint = await _platformUtilsService.AuthenticateFingerprintAsync(); } if (_fingerprint == current) { return; } if (_fingerprint) { await _storageService.SaveAsync(Constants.FingerprintUnlockKey, true); } else { await _storageService.RemoveAsync(Constants.FingerprintUnlockKey); } await _cryptoService.ToggleKeyAsync(); BuildList(); }