FFImageLoading only for main app

This commit is contained in:
Kyle Spearrin 2019-07-03 10:08:59 -04:00
parent 3e51ff46f3
commit ca8f6ee10b
2 changed files with 11 additions and 11 deletions

View File

@ -44,17 +44,6 @@ namespace Bit.iOS.Core.Utilities
ServiceContainer.Register<ILogService>("logService", new ConsoleLogService());
}
// Note: This might cause a race condition. Investigate more.
Task.Run(() =>
{
FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
FFImageLoading.ImageService.Instance.Initialize(new FFImageLoading.Config.Configuration
{
FadeAnimationEnabled = false,
FadeAnimationForCachedImages = false
});
});
var preferencesStorage = new PreferencesStorageService(AppGroupId);
var appGroupContainer = new NSFileManager().GetContainerUrl(AppGroupId);
var liteDbStorage = new LiteDbStorageService(

View File

@ -246,6 +246,17 @@ namespace Bit.iOS
"oldSecureStorageService", new Migration.KeyChainStorageService());
}
// Note: This might cause a race condition. Investigate more.
Task.Run(() =>
{
FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
FFImageLoading.ImageService.Instance.Initialize(new FFImageLoading.Config.Configuration
{
FadeAnimationEnabled = false,
FadeAnimationForCachedImages = false
});
});
iOSCoreHelpers.RegisterLocalServices();
RegisterPush();
ServiceContainer.Init();