mirror of
https://github.com/bitwarden/android.git
synced 2024-12-29 20:38:31 +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();
|
SetCulture();
|
||||||
SetStyles();
|
SetStyles();
|
||||||
|
|
||||||
WasFromAutofillService = !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));
|
||||||
|
@ -95,6 +94,7 @@ namespace Bit.App
|
||||||
protected async override void OnStart()
|
protected async override void OnStart()
|
||||||
{
|
{
|
||||||
// Handle when your app starts
|
// Handle when your app starts
|
||||||
|
ResumeFromAutofill();
|
||||||
await CheckLockAsync(false);
|
await CheckLockAsync(false);
|
||||||
_databaseService.CreateTables();
|
_databaseService.CreateTables();
|
||||||
await Task.Run(() => FullSyncAsync()).ConfigureAwait(false);
|
await Task.Run(() => FullSyncAsync()).ConfigureAwait(false);
|
||||||
|
@ -123,15 +123,10 @@ namespace Bit.App
|
||||||
|
|
||||||
// Handle when your app resumes
|
// Handle when your app resumes
|
||||||
Debug.WriteLine("OnResume");
|
Debug.WriteLine("OnResume");
|
||||||
|
ResumeFromAutofill();
|
||||||
|
|
||||||
if(Device.OS == TargetPlatform.Android)
|
if(Device.OS == TargetPlatform.Android)
|
||||||
{
|
{
|
||||||
if(WasFromAutofillService)
|
|
||||||
{
|
|
||||||
WasFromAutofillService = false;
|
|
||||||
MainPage = new MainPage();
|
|
||||||
|
|
||||||
}
|
|
||||||
await CheckLockAsync(false);
|
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()
|
private async Task IncrementalSyncAsync()
|
||||||
{
|
{
|
||||||
if(_connectivity.IsConnected)
|
if(_connectivity.IsConnected)
|
||||||
|
|
Loading…
Reference in a new issue