mirror of
https://github.com/bitwarden/mobile
synced 2025-01-01 11:38:11 +01:00
re-try focus on password lock page
This commit is contained in:
parent
5608cb542f
commit
7655c251a2
@ -100,8 +100,30 @@ namespace Bit.App.Pages
|
|||||||
{
|
{
|
||||||
base.OnAppearing();
|
base.OnAppearing();
|
||||||
PasswordCell.InitEvents();
|
PasswordCell.InitEvents();
|
||||||
PasswordCell.Entry.FocusWithDelay();
|
|
||||||
PasswordCell.Entry.Completed += Entry_Completed;
|
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()
|
protected override void OnDisappearing()
|
||||||
|
Loading…
Reference in New Issue
Block a user