summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/Image.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Image.cs b/Xamarin.Forms.Platform.Tizen/Native/Image.cs
index e4ec267a..c9358660 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/Image.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Image.cs
@@ -54,12 +54,18 @@ namespace Xamarin.Forms.Platform.Tizen.Native
public async Task<bool> LoadFromImageSourceAsync(ImageSource source)
{
IImageSourceHandler handler;
-
+ bool isLoadComplate = false;
if (source != null && (handler = Registrar.Registered.GetHandler<IImageSourceHandler>(source.GetType())) != null)
{
- return await handler.LoadImageAsync(this, source);
+ isLoadComplate = await handler.LoadImageAsync(this, source);
+ }
+ if (!isLoadComplate)
+ {
+ //If it fails, call the Load function to remove the previous image.
+ Load(string.Empty);
}
- return false;
+
+ return isLoadComplate;
}
/// <summary>