From 214f308027ec284b8026a18ae61da37f8262ec51 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 27 Nov 2017 13:56:11 -0500 Subject: [PATCH] Revert "disable fingerprint test" This reverts commit c1ce971adb896d3e863c7ff5008b68482685cc04. --- src/App/Pages/Settings/SettingsPage.cs | 2 +- src/App/Services/LockService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App/Pages/Settings/SettingsPage.cs b/src/App/Pages/Settings/SettingsPage.cs index 1385c0cee..1134c17f5 100644 --- a/src/App/Pages/Settings/SettingsPage.cs +++ b/src/App/Pages/Settings/SettingsPage.cs @@ -89,7 +89,7 @@ namespace Bit.App.Pages TwoStepCell }; - if(false) + if((await _fingerprint.GetAvailabilityAsync()) == FingerprintAvailability.Available) { var fingerprintName = Helpers.OnPlatform(iOS: AppResources.TouchID, Android: AppResources.Fingerprint, WinPhone: AppResources.Fingerprint); diff --git a/src/App/Services/LockService.cs b/src/App/Services/LockService.cs index dc3fd52ea..967e8b268 100644 --- a/src/App/Services/LockService.cs +++ b/src/App/Services/LockService.cs @@ -69,8 +69,8 @@ namespace Bit.App.Services // What method are we using to unlock? var fingerprintUnlock = _settings.GetValueOrDefault(Constants.SettingFingerprintUnlockOn, false); var pinUnlock = _settings.GetValueOrDefault(Constants.SettingPinUnlockOn, false); - //var fingerprintAvailability = await _fingerprint.GetAvailabilityAsync(); - if(fingerprintUnlock && false) + var fingerprintAvailability = await _fingerprint.GetAvailabilityAsync(); + if(fingerprintUnlock && fingerprintAvailability == FingerprintAvailability.Available) { return LockType.Fingerprint; }