summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-04-07 01:55:14 (GMT)
committerSeungkeun Lee <sngn.lee@samsung.com>2017-04-17 01:39:25 (GMT)
commit7b644efa01458d3e7708c00f153a7331bc1a5b9e (patch)
treee439ba22d1d5a434668a96d4e2fca5cd536c0bac
parentdfad930cda60996d4ea4efc8b021a1c37b64c5f4 (diff)
downloadxamarin-forms-7b644efa01458d3e7708c00f153a7331bc1a5b9e.zip
xamarin-forms-7b644efa01458d3e7708c00f153a7331bc1a5b9e.tar.gz
xamarin-forms-7b644efa01458d3e7708c00f153a7331bc1a5b9e.tar.bz2
Fix VisualElementRenderer IsDisposed check conditionrefs/changes/51/123751/3
- before true when _flags was exctaly same with VisualElementRendererFlags.Disposed - after true when _flags has a bit flage of VisualElementRendererFlags.Disposed Change-Id: I7491da1188ceeccd786eff4724b8ef702b6f500d
-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 d7f7715..73e8c64 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;
}