1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-10-24 08:00:10 +02:00

re-try focus on password lock page

This commit is contained in:
Kyle Spearrin 2017-08-30 22:19:14 -04:00
parent 5608cb542f
commit 7655c251a2

View File

@ -100,8 +100,30 @@ namespace Bit.App.Pages
{
base.OnAppearing();
PasswordCell.InitEvents();
PasswordCell.Entry.FocusWithDelay();
PasswordCell.Entry.Completed += Entry_Completed;
if(Device.RuntimePlatform == Device.Android)
{
Task.Run(async () =>
{
for(int i = 0; i < 5; i++)
{
await Task.Delay(1000);
if(!PasswordCell.Entry.IsFocused)
{
Device.BeginInvokeOnMainThread(() => PasswordCell.Entry.FocusWithDelay());
}
else
{
break;
}
}
});
}
else
{
PasswordCell.Entry.Focus();
}
}
protected override void OnDisappearing()