Open janduldhardt opened 4 years ago
This seems to be a "bug" in Android. See more info at https://stackoverflow.com/questions/52817245/timepickerdialog-onclick-on-button-positive-stopped-working-post-oreo , in the comments below the question someone mentions the cause and a workaround.
Description
When implementing a custom renderer for the TimePicker in Android to intercept whether the dialogs OK button is pressed, the handler is not triggered for the DialogButtonType.Positive. Negative and Neutral button handlers are triggered.
The same code is working for DatePickerRenderer
Steps to Reproduce
Expected Behavior
When clicking the OK button OnOk is called. When clicking the Cancel button OnCancel is called.
Actual Behavior
When clicking the OK button OnOk is NOT called. When clicking the Cancel button OnCancel is called.
Basic Information
Workaround
Instead I need to use the following code in my control: