From aed52fdbf845c095e94b8bb82a5d86c1b2f82fee Mon Sep 17 00:00:00 2001 From: antonio Date: Sun, 30 Jul 2023 12:45:51 +0200 Subject: [PATCH] clean: code cleanup --- .../ui/fragment/PodcastChannelPageFragment.java | 4 ---- .../res/layout/fragment_podcast_channel_page.xml | 13 +------------ 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/app/src/main/java/com/cappielloantonio/tempo/ui/fragment/PodcastChannelPageFragment.java b/app/src/main/java/com/cappielloantonio/tempo/ui/fragment/PodcastChannelPageFragment.java index 0a051bf3..a1b72c68 100644 --- a/app/src/main/java/com/cappielloantonio/tempo/ui/fragment/PodcastChannelPageFragment.java +++ b/app/src/main/java/com/cappielloantonio/tempo/ui/fragment/PodcastChannelPageFragment.java @@ -114,12 +114,10 @@ public class PodcastChannelPageFragment extends Fragment implements ClickCallbac if (channels == null) { if (bind != null) { bind.podcastEpisodesRecyclerView.setVisibility(View.GONE); - bind.podcastEpisodesAvailabilityTextView.setVisibility(View.VISIBLE); } } else { if (bind != null) { bind.podcastEpisodesRecyclerView.setVisibility(View.VISIBLE); - bind.podcastEpisodesAvailabilityTextView.setVisibility(View.GONE); } if (!channels.isEmpty() && channels.get(0) != null && channels.get(0).getEpisodes() != null) { @@ -127,8 +125,6 @@ public class PodcastChannelPageFragment extends Fragment implements ClickCallbac if (bind != null && availableEpisode != null) { bind.podcastEpisodesRecyclerView.setVisibility(availableEpisode.isEmpty() ? View.GONE : View.VISIBLE); - bind.podcastEpisodesAvailabilityTextView.setVisibility(availableEpisode.isEmpty() ? View.VISIBLE : View.GONE); - podcastEpisodeAdapter.setItems(availableEpisode); } } diff --git a/app/src/main/res/layout/fragment_podcast_channel_page.xml b/app/src/main/res/layout/fragment_podcast_channel_page.xml index 3a490f2d..c17266f7 100644 --- a/app/src/main/res/layout/fragment_podcast_channel_page.xml +++ b/app/src/main/res/layout/fragment_podcast_channel_page.xml @@ -99,21 +99,10 @@ - - \ No newline at end of file