summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-04-07 10:55:14 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-04-24 13:39:49 +0900
commit16d4a667ed24741e591e4ae3cc2106415257f2e0 (patch)
treea214766c10bac36a707400e8234cdc3760447117 /Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
parent35c94dd8866747738cb67e52b37f9a64b2f47f34 (diff)
downloadxamarin-forms-16d4a667ed24741e591e4ae3cc2106415257f2e0.tar.gz
xamarin-forms-16d4a667ed24741e591e4ae3cc2106415257f2e0.tar.bz2
xamarin-forms-16d4a667ed24741e591e4ae3cc2106415257f2e0.zip
Fix VisualElementRenderer IsDisposed check condition
- before true when _flags was exctaly same with VisualElementRendererFlags.Disposed - after true when _flags has a bit flage of VisualElementRendererFlags.Disposed Change-Id: I7491da1188ceeccd786eff4724b8ef702b6f500d
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
index d7f77150..73e8c64f 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
@@ -116,7 +116,7 @@ namespace Xamarin.Forms.Platform.Tizen
}
}
- protected bool IsDisposed => (_flags == VisualElementRendererFlags.Disposed);
+ protected bool IsDisposed => _flags.HasFlag(VisualElementRendererFlags.Disposed);
/// <summary>
/// Releases all resource used by the <see cref="Xamarin.Forms.Platform.Tizen.VisualElementRenderer"/> object.
@@ -271,7 +271,7 @@ namespace Xamarin.Forms.Platform.Tizen
/// <param name="disposing">True if the memory release was requested on demand.</param>
protected virtual void Dispose(bool disposing)
{
- if ((_flags & VisualElementRendererFlags.Disposed) != 0)
+ if (IsDisposed)
{
return;
}