mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 18:38:27 +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();
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue