mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
FFImageLoading only for main app
This commit is contained in:
parent
3e51ff46f3
commit
ca8f6ee10b
2 changed files with 11 additions and 11 deletions
|
@ -44,17 +44,6 @@ namespace Bit.iOS.Core.Utilities
|
||||||
ServiceContainer.Register<ILogService>("logService", new ConsoleLogService());
|
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 preferencesStorage = new PreferencesStorageService(AppGroupId);
|
||||||
var appGroupContainer = new NSFileManager().GetContainerUrl(AppGroupId);
|
var appGroupContainer = new NSFileManager().GetContainerUrl(AppGroupId);
|
||||||
var liteDbStorage = new LiteDbStorageService(
|
var liteDbStorage = new LiteDbStorageService(
|
||||||
|
|
|
@ -246,6 +246,17 @@ namespace Bit.iOS
|
||||||
"oldSecureStorageService", new Migration.KeyChainStorageService());
|
"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();
|
iOSCoreHelpers.RegisterLocalServices();
|
||||||
RegisterPush();
|
RegisterPush();
|
||||||
ServiceContainer.Init();
|
ServiceContainer.Init();
|
||||||
|
|
Loading…
Reference in a new issue