summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xXamarin.Forms.Platform.Tizen/Native/Image.cs5
-rwxr-xr-xXamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs3
2 files changed, 3 insertions, 5 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Image.cs b/Xamarin.Forms.Platform.Tizen/Native/Image.cs
index 5b64c435..ceae4e5f 100755
--- a/Xamarin.Forms.Platform.Tizen/Native/Image.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Image.cs
@@ -72,11 +72,10 @@ namespace Xamarin.Forms.Platform.Tizen.Native
/// <param name="source">Image source specifying from where the image data has to be loaded.</param>
public async Task<bool> LoadFromImageSourceAsync(ImageSource source)
{
- IImageSourceHandler handler = Registrar.Registered.GetHandler<IImageSourceHandler>(source.GetType());
-
_imageLoadCompleted = false;
+ IImageSourceHandler handler;
- if (source != null && handler != null)
+ if (source != null && (handler = Registrar.Registered.GetHandler<IImageSourceHandler>(source.GetType())) != null)
{
_imageLoadCompleted = await handler.LoadImageAsync(this, source);
}
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs
index 1f56eddf..3617b70e 100755
--- a/Xamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs
@@ -61,6 +61,7 @@ namespace Xamarin.Forms.Platform.Tizen
if (!IsDisposed && success)
{
((IVisualElementController)Element).NativeSizeChanged();
+ UpdateIsOpaque();
UpdateBlendColor();
}
}
@@ -88,8 +89,6 @@ namespace Xamarin.Forms.Platform.Tizen
{
UpdateSource();
UpdateAspect();
- UpdateIsOpaque();
- UpdateBlendColor();
}
}