Skip to content

Commit

Permalink
Windows build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-luberda committed Sep 18, 2017
1 parent d25c7ad commit 482b61c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/FFImageLoading.Forms.WinRT/CachedImageRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public class CachedImageRenderer : ViewRenderer<CachedImage, Image>
{
private bool _measured;
private IScheduledWork _currentTask;
private ImageSourceBinding _lastImageSource;
private bool _isDisposed = false;

/// <summary>
Expand Down Expand Up @@ -182,9 +183,9 @@ private async void UpdateSource()
Xamarin.Forms.ImageSource source = Element.Source;
Cancel();

var ffSource = ImageSourceBinding.GetImageSourceBinding(source, Element);
var placeholderSource = ImageSourceBinding.GetImageSourceBinding(Element.LoadingPlaceholder, Element);
var errorPlaceholderSource = ImageSourceBinding.GetImageSourceBinding(Element.ErrorPlaceholder, Element);
var ffSource = await ImageSourceBinding.GetImageSourceBinding(source, Element).ConfigureAwait(false);
var placeholderSource = await ImageSourceBinding.GetImageSourceBinding(Element.LoadingPlaceholder, Element).ConfigureAwait(false);
var errorPlaceholderSource = await ImageSourceBinding.GetImageSourceBinding(Element.ErrorPlaceholder, Element).ConfigureAwait(false);

if (ffSource == null)
{
Expand Down

0 comments on commit 482b61c

Please sign in to comment.