platform/android/Rhodes/src/com/rhomobile/rhodes/datetime/DateTimePickerScreen.java in rhodes-2.3.2 vs platform/android/Rhodes/src/com/rhomobile/rhodes/datetime/DateTimePickerScreen.java in rhodes-2.4.0.beta.1
- old
+ new
@@ -149,9 +149,13 @@
private OnClickListener mOkListener = new OnClickListener() {
public void onClick(View arg0) {
+ //These force values from internal edit fields being parsed.
+ _datePicker.clearFocus();
+ _timePicker.clearFocus();
+
_init.set(Calendar.YEAR, _datePicker.getYear());
_init.set(Calendar.MONTH, _datePicker.getMonth());
_init.set(Calendar.DAY_OF_MONTH, _datePicker.getDayOfMonth());
_init.set(Calendar.HOUR_OF_DAY, _timePicker.getCurrentHour());