mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +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");
|
System.Diagnostics.Debug.WriteLine("XF App: OnStart");
|
||||||
await ClearCacheIfNeededAsync();
|
await ClearCacheIfNeededAsync();
|
||||||
// Prime the word list
|
Prime();
|
||||||
var wordTask = Task.Run(() =>
|
|
||||||
{
|
|
||||||
// var word = WordList.EEFLongWordList[1];
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected async override void OnSleep()
|
protected async override void OnSleep()
|
||||||
|
@ -135,6 +131,7 @@ namespace Bit.App
|
||||||
System.Diagnostics.Debug.WriteLine("XF App: OnResume");
|
System.Diagnostics.Debug.WriteLine("XF App: OnResume");
|
||||||
_messagingService.Send("cancelLockTimer");
|
_messagingService.Send("cancelLockTimer");
|
||||||
await ClearCacheIfNeededAsync();
|
await ClearCacheIfNeededAsync();
|
||||||
|
Prime();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetCulture()
|
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