summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers
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-07-10 11:11:22 +0900
commit9b7af294d889c863a8b897425b21898a9e17c6e8 (patch)
treed456ec9d856236b5aab673e001a1d1b4b7c9d565 /Xamarin.Forms.Platform.Tizen/Renderers
parent84bbc1fcb61edd528e20440832fa5eaf100feb26 (diff)
downloadxamarin-forms-9b7af294d889c863a8b897425b21898a9e17c6e8.tar.gz
xamarin-forms-9b7af294d889c863a8b897425b21898a9e17c6e8.tar.bz2
xamarin-forms-9b7af294d889c863a8b897425b21898a9e17c6e8.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')
-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;
}