From 7ced93225b8dab189c842322cab5a2adf3f84c86 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 2 Jul 2019 07:50:09 -0400 Subject: [PATCH] logic on autoPromptFingerprint when locked --- src/App/App.xaml.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/App/App.xaml.cs b/src/App/App.xaml.cs index f2941019d..0f60049e7 100644 --- a/src/App/App.xaml.cs +++ b/src/App/App.xaml.cs @@ -90,7 +90,16 @@ namespace Bit.App else if(message.Command == "locked") { await _stateService.PurgeAsync(); - var lockPage = new LockPage(_appOptions, !(message.Data as bool?).GetValueOrDefault()); + var autoPromptFingerprint = !(message.Data as bool?).GetValueOrDefault(); + if(autoPromptFingerprint && Device.RuntimePlatform == Device.iOS) + { + var lockOptions = await _storageService.GetAsync(Constants.LockOptionKey); + if(lockOptions == 0) + { + autoPromptFingerprint = false; + } + } + var lockPage = new LockPage(_appOptions, autoPromptFingerprint); Device.BeginInvokeOnMainThread(() => Current.MainPage = new NavigationPage(lockPage)); } else if(message.Command == "lockVault")