Actually filter by last year (eg Jan-Dec)

This commit is contained in:
ByteHamster 2022-05-15 20:48:17 +02:00
parent 8b85e19922
commit 93f88650ad
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class StatisticsFilterDialog {
dialogBinding.timeToSpinner.setSelection(filterDatesTo.first.length - 1);
});
dialogBinding.pastYearButton.setOnClickListener(v -> {
dialogBinding.timeFromSpinner.setSelection(Math.max(0, filterDatesFrom.first.length - 13));
dialogBinding.timeFromSpinner.setSelection(Math.max(0, filterDatesFrom.first.length - 12));
dialogBinding.timeToSpinner.setSelection(filterDatesTo.first.length - 2);
});