mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 09:58:27 +03:00
remove lots of mainpage code since we allow closing of autofill page now
This commit is contained in:
parent
8e9becd579
commit
31b2eeb293
3 changed files with 0 additions and 13 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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 ?? "--"),
|
||||||
|
|
Loading…
Reference in a new issue