mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
Set lock page on resume for android
This commit is contained in:
parent
4e51517ddb
commit
cc036cf3c5
1 changed files with 7 additions and 0 deletions
|
@ -209,6 +209,13 @@ namespace Bit.App
|
|||
SyncIfNeeded();
|
||||
if(Current.MainPage is NavigationPage navPage && navPage.CurrentPage is LockPage lockPage)
|
||||
{
|
||||
if(Device.RuntimePlatform == Device.Android)
|
||||
{
|
||||
// Workaround for https://github.com/xamarin/Xamarin.Forms/issues/7478
|
||||
await Task.Delay(100);
|
||||
Current.MainPage = new NavigationPage(lockPage);
|
||||
// End workaround
|
||||
}
|
||||
await lockPage.PromptFingerprintAfterResumeAsync();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue