diff --git a/android-json-form-wizard/src/main/java/com/vijay/jsonwizard/customviews/NumericDatePicker.java b/android-json-form-wizard/src/main/java/com/vijay/jsonwizard/customviews/NumericDatePicker.java index d8c1df1a9..6bb570cac 100644 --- a/android-json-form-wizard/src/main/java/com/vijay/jsonwizard/customviews/NumericDatePicker.java +++ b/android-json-form-wizard/src/main/java/com/vijay/jsonwizard/customviews/NumericDatePicker.java @@ -598,6 +598,11 @@ private void resetPicker(NumberPicker numberPicker, int value) { numberPicker.setMaxValue(cacheMax); } + // Avoid the case where minV and max cache value are same + if (cacheMax == cacheMin) { + numberPicker.setMinValue(value); + numberPicker.setMaxValue(value); + } if (numberPicker.getId() == R.id.year) {