mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 13:23:39 +00:00
lock screen drawing & 2FA entry bugfixes (#910)
* lock screen drawing & 2FA entry bugfixes * cleanup whitespace
This commit is contained in:
@@ -234,13 +234,6 @@ 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,12 +82,13 @@ namespace Bit.App.Pages
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await LoadOnAppearedAsync(_scrollView, true, () =>
|
||||||
|
{
|
||||||
if (!_inited)
|
if (!_inited)
|
||||||
{
|
{
|
||||||
_inited = true;
|
_inited = true;
|
||||||
await LoadOnAppearedAsync(_scrollView, true, () =>
|
|
||||||
{
|
|
||||||
_vm.Init();
|
_vm.Init();
|
||||||
|
}
|
||||||
if (_vm.TotpMethod)
|
if (_vm.TotpMethod)
|
||||||
{
|
{
|
||||||
RequestFocus(_totpEntry);
|
RequestFocus(_totpEntry);
|
||||||
@@ -95,7 +96,6 @@ namespace Bit.App.Pages
|
|||||||
return Task.FromResult(0);
|
return Task.FromResult(0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnDisappearing()
|
protected override void OnDisappearing()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user