diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2016-09-27 04:51:22 -0600 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-09-27 11:51:22 +0100 |
commit | 6aa96a43915edaa8fa03ab9bf5abf00fd424f3f1 (patch) | |
tree | 51b81383a24596e09000c1d609c8967d0a3d9300 /Xamarin.Forms.Platform.Android/ViewRenderer.cs | |
parent | 2d5785731ed0062af80a0e85763316a63f64afa8 (diff) | |
download | xamarin-forms-6aa96a43915edaa8fa03ab9bf5abf00fd424f3f1.tar.gz xamarin-forms-6aa96a43915edaa8fa03ab9bf5abf00fd424f3f1.tar.bz2 xamarin-forms-6aa96a43915edaa8fa03ab9bf5abf00fd424f3f1.zip |
Clean up listeners and tag on ButtonRenderer during disposal (#360)
Clean up OnFocusChangeListener on ViewRenderer during disposal
Prevent memory leak of PageContainer/FragmentContainer when animating fragment transitions
Call Destroy() on Map during disposal
Rebasing
Diffstat (limited to 'Xamarin.Forms.Platform.Android/ViewRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Android/ViewRenderer.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Android/ViewRenderer.cs b/Xamarin.Forms.Platform.Android/ViewRenderer.cs index f285d6d9..057fbcee 100644 --- a/Xamarin.Forms.Platform.Android/ViewRenderer.cs +++ b/Xamarin.Forms.Platform.Android/ViewRenderer.cs @@ -76,7 +76,8 @@ namespace Xamarin.Forms.Platform.Android { if (Control != null && ManageNativeControlLifetime) { - Control.RemoveFromParent(); + Control.OnFocusChangeListener = null; + RemoveView(Control); Control.Dispose(); Control = null; } |