1
0
mirror of https://github.com/bitwarden/mobile.git synced 2025-01-03 18:17:47 +01:00

Don't focus fields if coming from register page so that they can see toast.

This commit is contained in:
Kyle Spearrin 2016-08-06 13:14:58 -04:00
parent 7de33d1c60
commit 638b3288b4

View File

@ -128,13 +128,16 @@ namespace Bit.App.Pages
base.OnAppearing();
MessagingCenter.Send(Application.Current, "ShowStatusBar", true);
if(!string.IsNullOrWhiteSpace(EmailCell.Entry.Text))
if(string.IsNullOrWhiteSpace(_email))
{
PasswordCell.Entry.Focus();
}
else
{
EmailCell.Entry.Focus();
if(!string.IsNullOrWhiteSpace(EmailCell.Entry.Text))
{
PasswordCell.Entry.Focus();
}
else
{
EmailCell.Entry.Focus();
}
}
}