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
1 changed files with 9 additions and 6 deletions

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();
}
}
}