From 468e03ed5c19812e9139275055e95d0d3eed1b17 Mon Sep 17 00:00:00 2001 From: Shane Neuville Date: Sat, 27 Apr 2019 13:18:08 -0600 Subject: [PATCH] [Android] set dialog to null when dismissed (#6031) fixes #5945 --- Xamarin.Forms.Platform.Android/Renderers/PickerRenderer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Xamarin.Forms.Platform.Android/Renderers/PickerRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/PickerRenderer.cs index 60a6eb8..92bc534 100644 --- a/Xamarin.Forms.Platform.Android/Renderers/PickerRenderer.cs +++ b/Xamarin.Forms.Platform.Android/Renderers/PickerRenderer.cs @@ -168,6 +168,8 @@ namespace Xamarin.Forms.Platform.Android _dialog.DismissEvent += (sender, args) => { ElementController?.SetValueFromRenderer(VisualElement.IsFocusedPropertyKey, false); + _dialog?.Dispose(); + _dialog = null; }; _dialog.Show(); } -- 2.7.4