From: Shane Neuville Date: Sat, 27 Apr 2019 19:18:08 +0000 (-0600) Subject: [Android] set dialog to null when dismissed (#6031) X-Git-Tag: accepted/tizen/5.5/unified/20200421.150457~402^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=468e03ed5c19812e9139275055e95d0d3eed1b17;p=platform%2Fcore%2Fcsapi%2Fxsf.git [Android] set dialog to null when dismissed (#6031) fixes #5945 --- 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(); }