From 31b2eeb2937c90c56ac9f256c3d2ee603d134efc Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 3 Feb 2017 00:26:55 -0500 Subject: [PATCH] remove lots of mainpage code since we allow closing of autofill page now --- src/Android/MainActivity.cs | 1 - src/App/App.cs | 4 ---- src/App/Pages/Vault/VaultAutofillListLoginsPage.cs | 8 -------- 3 files changed, 13 deletions(-) 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 ?? "--"),