diff options
author | ByteHamster <info@bytehamster.com> | 2022-03-05 10:58:20 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-03-05 10:58:20 +0100 |
commit | fc3807aaf56f050794b13c47ca276faf39ca903b (patch) | |
tree | bbf55850ab32bd5d2084fddabdec8c2e5993cf0b /ui/statistics/src/main/java/de/danoeh | |
parent | f0aec13ea3be17cb75d0b3de441efeba0ca7995c (diff) | |
download | AntennaPod-fc3807aaf56f050794b13c47ca276faf39ca903b.zip |
Use past year for statistics filter
Diffstat (limited to 'ui/statistics/src/main/java/de/danoeh')
-rw-r--r-- | ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java index 67b0217f3..13ac3ab0f 100644 --- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java +++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java @@ -46,7 +46,7 @@ public class StatisticsFilterDialog { dialogBinding.includeMarkedCheckbox.setOnCheckedChangeListener((compoundButton, checked) -> { dialogBinding.timeToSpinner.setEnabled(!checked); dialogBinding.timeFromSpinner.setEnabled(!checked); - dialogBinding.lastYearButton.setEnabled(!checked); + dialogBinding.pastYearButton.setEnabled(!checked); dialogBinding.allTimeButton.setEnabled(!checked); dialogBinding.dateSelectionContainer.setAlpha(checked ? 0.5f : 1f); }); @@ -79,8 +79,8 @@ public class StatisticsFilterDialog { dialogBinding.timeFromSpinner.setSelection(0); dialogBinding.timeToSpinner.setSelection(filterDatesTo.first.length - 1); }); - dialogBinding.lastYearButton.setOnClickListener(v -> { - dialogBinding.timeFromSpinner.setSelection(Math.max(0, filterDatesFrom.first.length - 14)); + dialogBinding.pastYearButton.setOnClickListener(v -> { + dialogBinding.timeFromSpinner.setSelection(Math.max(0, filterDatesFrom.first.length - 13)); dialogBinding.timeToSpinner.setSelection(filterDatesTo.first.length - 2); }); |