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