diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Android/Renderers/StreamImagesourceHandler.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Android/Renderers/StreamImagesourceHandler.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Android/Renderers/StreamImagesourceHandler.cs b/Xamarin.Forms.Platform.Android/Renderers/StreamImagesourceHandler.cs index 44066975..3128995d 100644 --- a/Xamarin.Forms.Platform.Android/Renderers/StreamImagesourceHandler.cs +++ b/Xamarin.Forms.Platform.Android/Renderers/StreamImagesourceHandler.cs @@ -13,7 +13,7 @@ namespace Xamarin.Forms.Platform.Android var streamsource = imagesource as StreamImageSource; if (streamsource != null && streamsource.Stream != null) { - using (Stream stream = await streamsource.GetStreamAsync(cancelationToken).ConfigureAwait(false)) + using (Stream stream = await ((IStreamImageSource)streamsource).GetStreamAsync(cancelationToken).ConfigureAwait(false)) return await BitmapFactory.DecodeStreamAsync(stream).ConfigureAwait(false); } return null; |