summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-09-23 22:14:46 +0200
committerGitHub <noreply@github.com>2024-09-23 22:14:46 +0200
commit0398912801be3686b98be749aa7309044ab76913 (patch)
treeeb5a8ebd377e3fcfbe8dcbc1c2ce4670e59e50d4
parentff4555fada0d5e217da7c9885740a77b379c86a9 (diff)
downloadAntennaPod-0398912801be3686b98be749aa7309044ab76913.zip
Do not show estimated episode release for local folder (#7422)
-rw-r--r--ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/feed/FeedStatisticsFragment.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/feed/FeedStatisticsFragment.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/feed/FeedStatisticsFragment.java
index 1948c6082..08e70b643 100644
--- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/feed/FeedStatisticsFragment.java
+++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/feed/FeedStatisticsFragment.java
@@ -175,9 +175,12 @@ public class FeedStatisticsFragment extends Fragment {
viewBinding.expectedNextEpisode.subtitleLabel.setText(R.string.statistics_release_next);
viewBinding.episodeSchedule.subtitleLabel.setText(R.string.statistics_release_schedule);
ReleaseScheduleGuesser.Guess guess = p.second;
- if (!s.feed.getPreferences().getKeepUpdated()) {
- viewBinding.expectedNextEpisode.subtitleLabel.setText(R.string.statistics_expected_next_episode_unknown);
- viewBinding.episodeSchedule.subtitleLabel.setText(R.string.updates_disabled_label);
+ if (s.feed.isLocalFeed()) {
+ viewBinding.expectedNextEpisode.mainLabel.setText(R.string.local_folder);
+ viewBinding.episodeSchedule.mainLabel.setText(R.string.local_folder);
+ } else if (!s.feed.getPreferences().getKeepUpdated()) {
+ viewBinding.expectedNextEpisode.mainLabel.setText(R.string.updates_disabled_label);
+ viewBinding.episodeSchedule.mainLabel.setText(R.string.updates_disabled_label);
} else if (guess == null || guess.nextExpectedDate.getTime() <= new Date().getTime() - 7 * 24 * 3600000L) {
// More than 30 days delayed
viewBinding.expectedNextEpisode.mainLabel.setText(R.string.statistics_expected_next_episode_unknown);