From cf35d20adb8216624c289489642929ae0607dca9 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 6 Jul 2019 22:19:29 -0400 Subject: [PATCH] refresh search on appear if has text --- src/App/Pages/Vault/CiphersPageViewModel.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/App/Pages/Vault/CiphersPageViewModel.cs b/src/App/Pages/Vault/CiphersPageViewModel.cs index bce8d2ab0..ff0f2e4d6 100644 --- a/src/App/Pages/Vault/CiphersPageViewModel.cs +++ b/src/App/Pages/Vault/CiphersPageViewModel.cs @@ -75,6 +75,10 @@ namespace Bit.App.Pages { WebsiteIconsEnabled = !(await _stateService.GetAsync(Constants.DisableFaviconKey)) .GetValueOrDefault(); + if(!string.IsNullOrWhiteSpace((Page as CiphersPage).SearchBar.Text)) + { + Search((Page as CiphersPage).SearchBar.Text, 500); + } } public void Search(string searchText, int? timeout = null) @@ -126,7 +130,7 @@ namespace Bit.App.Pages if(!string.IsNullOrWhiteSpace(AutofillUrl)) { var options = new List { AppResources.Autofill }; - if(cipher.Type == CipherType.Login && + if(cipher.Type == CipherType.Login && Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.None) { options.Add(AppResources.AutofillAndSave);