remove lots of mainpage code since we allow closing of autofill page now

This commit is contained in:
Kyle Spearrin 2017-02-03 00:26:55 -05:00
parent 8e9becd579
commit 31b2eeb293
3 changed files with 0 additions and 13 deletions

View file

@ -98,7 +98,6 @@ namespace Bit.Android
private void ReturnCredentials(VaultListPageModel.Login login) private void ReturnCredentials(VaultListPageModel.Login login)
{ {
App.App.FromAutofillService = true;
Intent data = new Intent(); Intent data = new Intent();
if(login == null) if(login == null)
{ {

View file

@ -33,8 +33,6 @@ namespace Bit.App
private readonly ILocalizeService _localizeService; private readonly ILocalizeService _localizeService;
private CancellationTokenSource _setMainPageCancellationTokenSource = null; private CancellationTokenSource _setMainPageCancellationTokenSource = null;
public static bool FromAutofillService { get; set; } = false;
public App( public App(
string uri, string uri,
IAuthService authService, IAuthService authService,
@ -63,7 +61,6 @@ namespace Bit.App
SetCulture(); SetCulture();
SetStyles(); SetStyles();
FromAutofillService = !string.IsNullOrWhiteSpace(_uri);
if(authService.IsAuthenticated && _uri != null) if(authService.IsAuthenticated && _uri != null)
{ {
MainPage = new ExtendedNavigationPage(new VaultAutofillListLoginsPage(_uri)); MainPage = new ExtendedNavigationPage(new VaultAutofillListLoginsPage(_uri));
@ -172,7 +169,6 @@ namespace Bit.App
}); });
_uri = null; _uri = null;
FromAutofillService = false;
}, cts.Token); }, cts.Token);
return cts; return cts;

View file

@ -61,14 +61,6 @@ namespace Bit.App.Pages
private void Init() private void Init()
{ {
MessagingCenter.Subscribe<Application, bool>(Application.Current, "SyncCompleted", (sender, success) =>
{
if(success)
{
_filterResultsCancellationTokenSource = FetchAndLoadVault();
}
});
var noDataLabel = new Label var noDataLabel = new Label
{ {
Text = string.Format(AppResources.NoLoginsForUri, _name ?? "--"), Text = string.Format(AppResources.NoLoginsForUri, _name ?? "--"),