diff options
author | ByteHamster <info@bytehamster.com> | 2022-03-05 11:00:49 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-03-05 11:00:49 +0100 |
commit | 5fee865ed4f5f5c12ee18df15652b324caadd909 (patch) | |
tree | a90adf4c776b1ecbbb60d685b87fd23245fa495e /ui/statistics/src | |
parent | fc3807aaf56f050794b13c47ca276faf39ca903b (diff) | |
download | AntennaPod-5fee865ed4f5f5c12ee18df15652b324caadd909.zip |
Filter 'today' does not make sense for 'from'
Diffstat (limited to 'ui/statistics/src')
-rw-r--r-- | ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java | 6 |
1 files changed, 4 insertions, 2 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 13ac3ab0f..93f8e7715 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 @@ -126,8 +126,10 @@ public class StatisticsFilterDialog { timestamps.add(date.getTimeInMillis()); } } - names.add(context.getString(R.string.statistics_today)); - timestamps.add(Long.MAX_VALUE); + if (inclusive) { + names.add(context.getString(R.string.statistics_today)); + timestamps.add(Long.MAX_VALUE); + } return new Pair<>(names.toArray(new String[0]), timestamps.toArray(new Long[0])); } } |