Set lock page on resume for android

This commit is contained in:
Kyle Spearrin 2019-12-16 09:43:14 -05:00
parent 4e51517ddb
commit cc036cf3c5
1 changed files with 7 additions and 0 deletions

View File

@ -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();
}
}