mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
prime expensive tasks
This commit is contained in:
parent
25d02cec25
commit
6218c65ec6
2 changed files with 11 additions and 7793 deletions
|
@ -116,11 +116,7 @@ namespace Bit.App
|
|||
{
|
||||
System.Diagnostics.Debug.WriteLine("XF App: OnStart");
|
||||
await ClearCacheIfNeededAsync();
|
||||
// Prime the word list
|
||||
var wordTask = Task.Run(() =>
|
||||
{
|
||||
// var word = WordList.EEFLongWordList[1];
|
||||
});
|
||||
Prime();
|
||||
}
|
||||
|
||||
protected async override void OnSleep()
|
||||
|
@ -135,6 +131,7 @@ namespace Bit.App
|
|||
System.Diagnostics.Debug.WriteLine("XF App: OnResume");
|
||||
_messagingService.Send("cancelLockTimer");
|
||||
await ClearCacheIfNeededAsync();
|
||||
Prime();
|
||||
}
|
||||
|
||||
private void SetCulture()
|
||||
|
@ -251,5 +248,14 @@ namespace Bit.App
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
private void Prime()
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
var word = EEFLongWordList.Instance.List[1];
|
||||
var parsedDomain = DomainName.TryParse("https://bitwarden.com", out var domainName);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue