Removed podcast placeholder

This commit is contained in:
CappielloAntonio 2022-02-06 15:44:41 +01:00
parent d5d06d3c0b
commit 362e31c450
3 changed files with 1 additions and 8 deletions

2
.idea/misc.xml generated
View file

@ -95,7 +95,7 @@
<entry key="app/src/main/res/layout/fragment_download.xml" value="0.283363802559415" />
<entry key="app/src/main/res/layout/fragment_filter.xml" value="0.3229166666666667" />
<entry key="app/src/main/res/layout/fragment_genre_catalogue.xml" value="0.3229166666666667" />
<entry key="app/src/main/res/layout/fragment_home.xml" value="0.2871699861046781" />
<entry key="app/src/main/res/layout/fragment_home.xml" value="0.24929634097305992" />
<entry key="app/src/main/res/layout/fragment_landing.xml" value="0.3229166666666667" />
<entry key="app/src/main/res/layout/fragment_library.xml" value="0.4865951742627346" />
<entry key="app/src/main/res/layout/fragment_login.xml" value="0.3166496424923391" />

View file

@ -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);

View file

@ -624,11 +624,6 @@
android:clipToPadding="false"
android:paddingBottom="8dp" />
</LinearLayout>
<include
android:id="@+id/home_newest_podcasts_placeholder"
layout="@layout/item_placehoder_discovery"
android:visibility="gone" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>