diff --git a/src/Android/MainActivity.cs b/src/Android/MainActivity.cs index 29f1fe651..dd025d7b9 100644 --- a/src/Android/MainActivity.cs +++ b/src/Android/MainActivity.cs @@ -98,7 +98,6 @@ namespace Bit.Android private void ReturnCredentials(VaultListPageModel.Login login) { - App.App.FromAutofillService = true; Intent data = new Intent(); if(login == null) { diff --git a/src/App/App.cs b/src/App/App.cs index 51d28b502..1ba315185 100644 --- a/src/App/App.cs +++ b/src/App/App.cs @@ -33,8 +33,6 @@ namespace Bit.App private readonly ILocalizeService _localizeService; private CancellationTokenSource _setMainPageCancellationTokenSource = null; - public static bool FromAutofillService { get; set; } = false; - public App( string uri, IAuthService authService, @@ -63,7 +61,6 @@ namespace Bit.App SetCulture(); SetStyles(); - FromAutofillService = !string.IsNullOrWhiteSpace(_uri); if(authService.IsAuthenticated && _uri != null) { MainPage = new ExtendedNavigationPage(new VaultAutofillListLoginsPage(_uri)); @@ -172,7 +169,6 @@ namespace Bit.App }); _uri = null; - FromAutofillService = false; }, cts.Token); return cts; diff --git a/src/App/Pages/Vault/VaultAutofillListLoginsPage.cs b/src/App/Pages/Vault/VaultAutofillListLoginsPage.cs index 295f4f57d..59ba9060b 100644 --- a/src/App/Pages/Vault/VaultAutofillListLoginsPage.cs +++ b/src/App/Pages/Vault/VaultAutofillListLoginsPage.cs @@ -61,14 +61,6 @@ namespace Bit.App.Pages private void Init() { - MessagingCenter.Subscribe(Application.Current, "SyncCompleted", (sender, success) => - { - if(success) - { - _filterResultsCancellationTokenSource = FetchAndLoadVault(); - } - }); - var noDataLabel = new Label { Text = string.Format(AppResources.NoLoginsForUri, _name ?? "--"),