diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Android/VisualElementRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Android/VisualElementRenderer.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs b/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs index 404dd23e..745d2cdd 100644 --- a/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs +++ b/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs @@ -229,6 +229,9 @@ namespace Xamarin.Forms.Platform.Android if (disposing) { + SetOnClickListener(null); + SetOnTouchListener(null); + if (Tracker != null) { Tracker.Dispose(); @@ -273,6 +276,8 @@ namespace Xamarin.Forms.Platform.Android if (Platform.GetRenderer(Element) == this) Platform.SetRenderer(Element, null); + (Element as IElementController).EffectControlProvider = null; + Element = null; } } |