From 762b574d491bc1a965dd80231b8f4e730d287368 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 22 Jul 2019 10:12:14 -0400 Subject: [PATCH] rebuild same fingerprintName string --- .../Settings/SettingsPage/SettingsPage.xaml.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/App/Pages/Settings/SettingsPage/SettingsPage.xaml.cs b/src/App/Pages/Settings/SettingsPage/SettingsPage.xaml.cs index 59a2cb5dd..ee1b35778 100644 --- a/src/App/Pages/Settings/SettingsPage/SettingsPage.xaml.cs +++ b/src/App/Pages/Settings/SettingsPage/SettingsPage.xaml.cs @@ -137,10 +137,18 @@ namespace Bit.App.Pages { await _vm.UpdatePinAsync(); } - else if(item.Name.Contains(AppResources.Fingerprint) || item.Name.Contains(AppResources.TouchID) || - item.Name.Contains(AppResources.FaceID)) + else { - 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(); + } } } }