1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 07:43:37 +00:00

update fingerprint libraries

This commit is contained in:
Kyle Spearrin
2017-06-02 14:46:10 -04:00
parent feacb3ed14
commit 753d01d413
23 changed files with 227 additions and 236 deletions

View File

@@ -52,7 +52,7 @@ namespace Bit.App.Pages
private LongDetailViewCell RateCellLong { get; set; }
private ExtendedTableView Table { get; set; }
private void Init()
private async void Init()
{
PinCell = new ExtendedSwitchCell
{
@@ -80,7 +80,7 @@ namespace Bit.App.Pages
TwoStepCell
};
if(_fingerprint.IsAvailable)
if((await _fingerprint.GetAvailabilityAsync()) == FingerprintAvailability.Available)
{
var fingerprintName = Helpers.OnPlatform(iOS: AppResources.TouchID, Android: AppResources.Fingerprint,
WinPhone: AppResources.Fingerprint);
@@ -88,7 +88,7 @@ namespace Bit.App.Pages
{
Text = string.Format(AppResources.UnlockWith, fingerprintName),
On = _settings.GetValueOrDefault(Constants.SettingFingerprintUnlockOn, false),
IsEnabled = _fingerprint.IsAvailable
IsEnabled = true
};
securitySecion.Insert(1, FingerprintCell);
}