From 913cc1ffa11cd1b8a272a4b56f3fadbda167f63b Mon Sep 17 00:00:00 2001 From: Daniel Luberda Date: Mon, 2 Jan 2017 22:34:58 +0100 Subject: [PATCH] FadeAnimationEnabledForCached is now independent of FadeAnimationEnabled --- source/FFImageLoading.Common/Work/ImageLoaderTask.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/FFImageLoading.Common/Work/ImageLoaderTask.cs b/source/FFImageLoading.Common/Work/ImageLoaderTask.cs index 26b8d2a3c..c93f33ac1 100644 --- a/source/FFImageLoading.Common/Work/ImageLoaderTask.cs +++ b/source/FFImageLoading.Common/Work/ImageLoaderTask.cs @@ -246,9 +246,8 @@ public async virtual Task TryLoadFromMemoryCacheAsync() if (Parameters.Preload && Parameters.CacheType.HasValue && Parameters.CacheType.Value == CacheType.Disk) return false; - bool isFadeAnimationEnabled = Parameters.FadeAnimationEnabled.HasValue ? Parameters.FadeAnimationEnabled.Value : Configuration.FadeAnimationEnabled; bool isFadeAnimationEnabledForCached = Parameters.FadeAnimationForCachedImagesEnabled.HasValue ? Parameters.FadeAnimationForCachedImagesEnabled.Value : Configuration.FadeAnimationForCachedImages; - var result = await TryLoadFromMemoryCacheAsync(Key, true, isFadeAnimationEnabled && isFadeAnimationEnabledForCached, false).ConfigureAwait(false); + var result = await TryLoadFromMemoryCacheAsync(Key, true, isFadeAnimationEnabledForCached, false).ConfigureAwait(false); if (result) {