mirror of
https://github.com/bitwarden/android.git
synced 2024-12-18 23:31:52 +03:00
dont main page on sleep
This commit is contained in:
parent
d067de086d
commit
8e9becd579
1 changed files with 2 additions and 7 deletions
|
@ -95,7 +95,7 @@ namespace Bit.App
|
||||||
|
|
||||||
MessagingCenter.Subscribe<Application>(Current, "SetMainPage", (sender) =>
|
MessagingCenter.Subscribe<Application>(Current, "SetMainPage", (sender) =>
|
||||||
{
|
{
|
||||||
_setMainPageCancellationTokenSource = SetMainPageFromAutofill(_setMainPageCancellationTokenSource, 1000);
|
_setMainPageCancellationTokenSource = SetMainPageFromAutofill(_setMainPageCancellationTokenSource, 500);
|
||||||
});
|
});
|
||||||
|
|
||||||
MessagingCenter.Subscribe<Application>(Current, "SetMainPageNow", (sender) =>
|
MessagingCenter.Subscribe<Application>(Current, "SetMainPageNow", (sender) =>
|
||||||
|
@ -118,8 +118,7 @@ namespace Bit.App
|
||||||
{
|
{
|
||||||
// Handle when your app sleeps
|
// Handle when your app sleeps
|
||||||
Debug.WriteLine("OnSleep");
|
Debug.WriteLine("OnSleep");
|
||||||
|
|
||||||
_setMainPageCancellationTokenSource = SetMainPageFromAutofill(_setMainPageCancellationTokenSource, 1000);
|
|
||||||
if(Device.OS == TargetPlatform.Android && !TopPageIsLock())
|
if(Device.OS == TargetPlatform.Android && !TopPageIsLock())
|
||||||
{
|
{
|
||||||
_settings.AddOrUpdateValue(Constants.LastActivityDate, DateTime.UtcNow);
|
_settings.AddOrUpdateValue(Constants.LastActivityDate, DateTime.UtcNow);
|
||||||
|
@ -157,10 +156,6 @@ namespace Bit.App
|
||||||
}
|
}
|
||||||
|
|
||||||
previousCts?.Cancel();
|
previousCts?.Cancel();
|
||||||
if(!FromAutofillService || string.IsNullOrWhiteSpace(_uri))
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
var cts = new CancellationTokenSource();
|
var cts = new CancellationTokenSource();
|
||||||
Task.Run(async () =>
|
Task.Run(async () =>
|
||||||
|
|
Loading…
Reference in a new issue