refresh search on appear if has text

This commit is contained in:
Kyle Spearrin 2019-07-06 22:19:29 -04:00
parent 65725b5a38
commit cf35d20adb

View file

@ -75,6 +75,10 @@ namespace Bit.App.Pages
{ {
WebsiteIconsEnabled = !(await _stateService.GetAsync<bool?>(Constants.DisableFaviconKey)) WebsiteIconsEnabled = !(await _stateService.GetAsync<bool?>(Constants.DisableFaviconKey))
.GetValueOrDefault(); .GetValueOrDefault();
if(!string.IsNullOrWhiteSpace((Page as CiphersPage).SearchBar.Text))
{
Search((Page as CiphersPage).SearchBar.Text, 500);
}
} }
public void Search(string searchText, int? timeout = null) public void Search(string searchText, int? timeout = null)
@ -126,7 +130,7 @@ namespace Bit.App.Pages
if(!string.IsNullOrWhiteSpace(AutofillUrl)) if(!string.IsNullOrWhiteSpace(AutofillUrl))
{ {
var options = new List<string> { AppResources.Autofill }; var options = new List<string> { AppResources.Autofill };
if(cipher.Type == CipherType.Login && if(cipher.Type == CipherType.Login &&
Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.None) Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.None)
{ {
options.Add(AppResources.AutofillAndSave); options.Add(AppResources.AutofillAndSave);