1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-30 12:54:24 +01:00

always focus search bar on appear, resolves #521

This commit is contained in:
Kyle Spearrin 2019-06-06 09:39:48 -04:00
parent a2d00c4057
commit fa5c8c2c75

View File

@ -51,12 +51,9 @@ namespace Bit.App.Pages
if(!_hasFocused) if(!_hasFocused)
{ {
_hasFocused = true; _hasFocused = true;
if(string.IsNullOrWhiteSpace(_autofillUrl))
{
RequestFocus(_searchBar); RequestFocus(_searchBar);
} }
} }
}
private void SearchBar_TextChanged(object sender, TextChangedEventArgs e) private void SearchBar_TextChanged(object sender, TextChangedEventArgs e)
{ {