How to close datepicker on Device back button click in android

How to close date picker/time picker on Device back button click in Android.

1 Like

I am having the same issue. Any updates on this issue?