task.run ffimage init

This commit is contained in:
Kyle Spearrin 2019-04-26 10:58:41 -04:00
parent 7613f4191b
commit dc0f9847c6

View file

@ -39,7 +39,8 @@ namespace Bit.Droid
private void RegisterLocalServices()
{
FFImageLoading.Forms.Platform.CachedImageRenderer.Init(true);
// Note: This might cause a race condition. Investigate more.
Task.Run(() => FFImageLoading.Forms.Platform.CachedImageRenderer.Init(true));
var preferencesStorage = new PreferencesStorageService(null);
var documentsPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);