1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-27 12:26:31 +01:00

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

View File

@ -209,6 +209,13 @@ namespace Bit.App
SyncIfNeeded(); SyncIfNeeded();
if(Current.MainPage is NavigationPage navPage && navPage.CurrentPage is LockPage lockPage) 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(); await lockPage.PromptFingerprintAfterResumeAsync();
} }
} }