From dc0f9847c6af1c7864befc318f2763efb1a9ee48 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 26 Apr 2019 10:58:41 -0400 Subject: [PATCH] task.run ffimage init --- src/Android/MainApplication.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Android/MainApplication.cs b/src/Android/MainApplication.cs index 5689cbf33..6c3f2dd3f 100644 --- a/src/Android/MainApplication.cs +++ b/src/Android/MainApplication.cs @@ -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);