summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xamarin.Forms.Platform.Android/ViewRenderer.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Android/ViewRenderer.cs b/Xamarin.Forms.Platform.Android/ViewRenderer.cs
index 160c3828..63fef49c 100644
--- a/Xamarin.Forms.Platform.Android/ViewRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/ViewRenderer.cs
@@ -86,6 +86,12 @@ namespace Xamarin.Forms.Platform.Android
_container = null;
}
+ if (Element != null && _focusChangeHandler != null)
+ {
+ Element.FocusChangeRequested -= _focusChangeHandler;
+ _focusChangeHandler = null;
+ }
+
_disposed = true;
}