mirror of
https://github.com/bitwarden/mobile.git
synced 2025-01-30 22:31:26 +01:00
prime expensive tasks
This commit is contained in:
parent
25d02cec25
commit
6218c65ec6
@ -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 New Issue
Block a user