mirror of
https://github.com/bitwarden/mobile
synced 2025-12-22 19:23:58 +00:00
check modal stack before popping
This commit is contained in:
@@ -119,7 +119,10 @@ namespace Bit.App.Pages
|
|||||||
if(result.Authenticated)
|
if(result.Authenticated)
|
||||||
{
|
{
|
||||||
_appSettings.Locked = false;
|
_appSettings.Locked = false;
|
||||||
await Navigation.PopModalAsync();
|
if(Navigation.ModalStack.Count > 0)
|
||||||
|
{
|
||||||
|
await Navigation.PopModalAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if(result.Status == FingerprintAuthenticationResultStatus.FallbackRequested)
|
else if(result.Status == FingerprintAuthenticationResultStatus.FallbackRequested)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -155,7 +155,10 @@ namespace Bit.App.Pages
|
|||||||
if(key.Key.SequenceEqual(_cryptoService.Key.Key))
|
if(key.Key.SequenceEqual(_cryptoService.Key.Key))
|
||||||
{
|
{
|
||||||
_appSettingsService.Locked = false;
|
_appSettingsService.Locked = false;
|
||||||
await Navigation.PopModalAsync();
|
if(Navigation.ModalStack.Count > 0)
|
||||||
|
{
|
||||||
|
await Navigation.PopModalAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -126,7 +126,10 @@ namespace Bit.App.Pages
|
|||||||
_appSettingsService.Locked = false;
|
_appSettingsService.Locked = false;
|
||||||
_appSettingsService.FailedPinAttempts = 0;
|
_appSettingsService.FailedPinAttempts = 0;
|
||||||
PinControl.Entry.Unfocus();
|
PinControl.Entry.Unfocus();
|
||||||
await Navigation.PopModalAsync();
|
if(Navigation.ModalStack.Count > 0)
|
||||||
|
{
|
||||||
|
await Navigation.PopModalAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user