diff --git a/Xamarin.Forms.Platform.Android/Renderers/DatePickerRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/DatePickerRenderer.cs index 050268ec4..54a3e6168 100644 --- a/Xamarin.Forms.Platform.Android/Renderers/DatePickerRenderer.cs +++ b/Xamarin.Forms.Platform.Android/Renderers/DatePickerRenderer.cs @@ -170,6 +170,11 @@ namespace Xamarin.Forms.Platform.Android void OnTextFieldClicked() { + if (_dialog != null && _dialog.IsShowing) + { + return; + } + DatePicker view = Element; ((IElementController)view).SetValueFromRenderer(VisualElement.IsFocusedPropertyKey, true); diff --git a/Xamarin.Forms.Platform.Android/Renderers/TimePickerRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/TimePickerRenderer.cs index fa56fda78..c952fd58a 100644 --- a/Xamarin.Forms.Platform.Android/Renderers/TimePickerRenderer.cs +++ b/Xamarin.Forms.Platform.Android/Renderers/TimePickerRenderer.cs @@ -145,6 +145,11 @@ namespace Xamarin.Forms.Platform.Android void OnClick() { + if (_dialog != null && _dialog.IsShowing) + { + return; + } + TimePicker view = Element; ElementController.SetValueFromRenderer(VisualElement.IsFocusedPropertyKey, true);