mirror of
https://github.com/bitwarden/android.git
synced 2024-12-20 08:12:26 +03:00
wip autofill tweaks
This commit is contained in:
parent
95b8efae20
commit
47e427a851
1 changed files with 15 additions and 7 deletions
|
@ -61,7 +61,6 @@ namespace Bit.App
|
|||
SetCulture();
|
||||
SetStyles();
|
||||
|
||||
WasFromAutofillService = !string.IsNullOrWhiteSpace(_uri);
|
||||
if(authService.IsAuthenticated && _uri != null)
|
||||
{
|
||||
MainPage = new ExtendedNavigationPage(new VaultAutofillListLoginsPage(_uri));
|
||||
|
@ -95,6 +94,7 @@ namespace Bit.App
|
|||
protected async override void OnStart()
|
||||
{
|
||||
// Handle when your app starts
|
||||
ResumeFromAutofill();
|
||||
await CheckLockAsync(false);
|
||||
_databaseService.CreateTables();
|
||||
await Task.Run(() => FullSyncAsync()).ConfigureAwait(false);
|
||||
|
@ -123,15 +123,10 @@ namespace Bit.App
|
|||
|
||||
// Handle when your app resumes
|
||||
Debug.WriteLine("OnResume");
|
||||
ResumeFromAutofill();
|
||||
|
||||
if(Device.OS == TargetPlatform.Android)
|
||||
{
|
||||
if(WasFromAutofillService)
|
||||
{
|
||||
WasFromAutofillService = false;
|
||||
MainPage = new MainPage();
|
||||
|
||||
}
|
||||
await CheckLockAsync(false);
|
||||
}
|
||||
|
||||
|
@ -142,6 +137,19 @@ namespace Bit.App
|
|||
}
|
||||
}
|
||||
|
||||
private void ResumeFromAutofill()
|
||||
{
|
||||
if(Device.OS == TargetPlatform.Android && WasFromAutofillService)
|
||||
{
|
||||
WasFromAutofillService = false;
|
||||
MainPage = new MainPage();
|
||||
}
|
||||
else
|
||||
{
|
||||
WasFromAutofillService = !string.IsNullOrWhiteSpace(_uri);
|
||||
}
|
||||
}
|
||||
|
||||
private async Task IncrementalSyncAsync()
|
||||
{
|
||||
if(_connectivity.IsConnected)
|
||||
|
|
Loading…
Reference in a new issue