From 0398912801be3686b98be749aa7309044ab76913 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Mon, 23 Sep 2024 22:14:46 +0200 Subject: [PATCH] Do not show estimated episode release for local folder (#7422) --- .../ui/statistics/feed/FeedStatisticsFragment.java | 9 ++++++--- 1 file 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);