We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c1588c commit f77e402Copy full SHA for f77e402
library/src/main/java/com/wdullaer/materialdatetimepicker/date/DayPickerGroup.java
@@ -179,7 +179,7 @@ public void onClick(@NonNull View v) {
179
// updateButtonVisibility only triggers when a scroll is completed. So a user might
180
// click the button when the animation is still ongoing potentially pushing the target
181
// position outside of the bounds of the dayPickerView
182
- if (position >= 0 || position < dayPickerView.getCount()) {
+ if (position >= 0 && position < dayPickerView.getCount()) {
183
dayPickerView.smoothScrollToPosition(position);
184
updateButtonVisibility(position);
185
}
0 commit comments