mirror of
https://github.com/bitwarden/android.git
synced 2025-01-12 11:17:30 +03:00
logic on autoPromptFingerprint when locked
This commit is contained in:
parent
b5e61864af
commit
7ced93225b
1 changed files with 10 additions and 1 deletions
|
@ -90,7 +90,16 @@ namespace Bit.App
|
||||||
else if(message.Command == "locked")
|
else if(message.Command == "locked")
|
||||||
{
|
{
|
||||||
await _stateService.PurgeAsync();
|
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<int?>(Constants.LockOptionKey);
|
||||||
|
if(lockOptions == 0)
|
||||||
|
{
|
||||||
|
autoPromptFingerprint = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var lockPage = new LockPage(_appOptions, autoPromptFingerprint);
|
||||||
Device.BeginInvokeOnMainThread(() => Current.MainPage = new NavigationPage(lockPage));
|
Device.BeginInvokeOnMainThread(() => Current.MainPage = new NavigationPage(lockPage));
|
||||||
}
|
}
|
||||||
else if(message.Command == "lockVault")
|
else if(message.Command == "lockVault")
|
||||||
|
|
Loading…
Reference in a new issue