From cc036cf3c5300993279c757e61602b393786d933 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 16 Dec 2019 09:43:14 -0500 Subject: [PATCH] Set lock page on resume for android --- src/App/App.xaml.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/App/App.xaml.cs b/src/App/App.xaml.cs index 286b7e1e1..65abf171b 100644 --- a/src/App/App.xaml.cs +++ b/src/App/App.xaml.cs @@ -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(); } }