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 | |
parent | f0aec13ea3be17cb75d0b3de441efeba0ca7995c (diff) | |
download | AntennaPod-fc3807aaf56f050794b13c47ca276faf39ca903b.zip |
Use past year for statistics filter
Diffstat (limited to 'ui/statistics')
-rw-r--r-- | ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java | 6 | ||||
-rw-r--r-- | ui/statistics/src/main/res/layout/statistics_filter_dialog.xml | 4 |
2 files changed, 5 insertions, 5 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); }); diff --git a/ui/statistics/src/main/res/layout/statistics_filter_dialog.xml b/ui/statistics/src/main/res/layout/statistics_filter_dialog.xml index d37226c07..684ceabd2 100644 --- a/ui/statistics/src/main/res/layout/statistics_filter_dialog.xml +++ b/ui/statistics/src/main/res/layout/statistics_filter_dialog.xml @@ -65,10 +65,10 @@ android:orientation="horizontal"> <Button - android:id="@+id/lastYearButton" + android:id="@+id/past_year_button" android:layout_width="0dp" android:layout_height="wrap_content" - android:text="@string/statistics_filter_last_year" + android:text="@string/statistics_filter_past_year" android:layout_weight="1" android:layout_marginEnd="4dp" style="@style/Widget.MaterialComponents.Button.OutlinedButton" /> |