-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datepicker callback function not called in Android #94
Comments
+1 |
When I comment out timeDialog.setButton() for BUTTON_POSITIVE on line 107 of DatePickerPlugin.java, the success callback is called as expected. Does the onTimeSet event need to be fired in that button's onClick event if it's being overriden? |
I've got the same problem on Android 5.0.1 |
+1 on android 4.2.2 and up, using cordova 5.0.0 and Crosswalk 11 |
I'm working on that, thank you all. |
Like ecthurlow said, I needed to call onDateSet and onTimeSet on click event of the buttons. I tested on devices Motorola 5.0.2 and Samsung 4.2.2, it worked fine. Tested on emulator 4.2.2 and 5.1.1 and it worked too. These fixes are in Pull Request #96. If you find anything wrong, please report. I'm very sorry for this mess. |
Using the example code, the success callback function never fires after selecting a time or date and pressing OK. When debugging the java file, I found that the onTimeSet and onDateSet functions in TimeSetListener and DateSetListener weren't being called.
The text was updated successfully, but these errors were encountered: