diff --git a/.idea/misc.xml b/.idea/misc.xml index 8c22abe1..5e8f499f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -95,7 +95,7 @@ - + diff --git a/app/src/main/java/com/cappielloantonio/play/ui/fragment/HomeFragment.java b/app/src/main/java/com/cappielloantonio/play/ui/fragment/HomeFragment.java index 67befdc2..650f2338 100644 --- a/app/src/main/java/com/cappielloantonio/play/ui/fragment/HomeFragment.java +++ b/app/src/main/java/com/cappielloantonio/play/ui/fragment/HomeFragment.java @@ -605,10 +605,8 @@ public class HomeFragment extends Fragment { bind.newestPodcastsViewPager.setOffscreenPageLimit(1); homeViewModel.getNewestPodcastEpisodes(requireActivity()).observe(requireActivity(), podcastEpisodes -> { if (podcastEpisodes == null) { - if (bind != null) bind.homeNewestPodcastsPlaceholder.placeholder.setVisibility(View.VISIBLE); if (bind != null) bind.homeNewestPodcastsSector.setVisibility(View.GONE); } else { - if (bind != null) bind.homeNewestPodcastsPlaceholder.placeholder.setVisibility(View.GONE); if (bind != null) bind.homeNewestPodcastsSector.setVisibility(!podcastEpisodes.isEmpty() ? View.VISIBLE : View.GONE); podcastEpisodeAdapter.setItems(podcastEpisodes); diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index 7d5b2114..1e50e2e1 100644 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -624,11 +624,6 @@ android:clipToPadding="false" android:paddingBottom="8dp" /> - -