rebuild same fingerprintName string

This commit is contained in:
Kyle Spearrin 2019-07-22 10:12:14 -04:00
parent d73bf6d225
commit 762b574d49

View file

@ -137,10 +137,18 @@ namespace Bit.App.Pages
{ {
await _vm.UpdatePinAsync(); await _vm.UpdatePinAsync();
} }
else if(item.Name.Contains(AppResources.Fingerprint) || item.Name.Contains(AppResources.TouchID) || else
item.Name.Contains(AppResources.FaceID))
{ {
await _vm.UpdateFingerprintAsync(); var fingerprintName = AppResources.Fingerprint;
if(Device.RuntimePlatform == Device.iOS)
{
fingerprintName = _deviceActionService.SupportsFaceId() ?
AppResources.FaceID : AppResources.TouchID;
}
if(item.Name == string.Format(AppResources.UnlockWith, fingerprintName))
{
await _vm.UpdateFingerprintAsync();
}
} }
} }
} }