mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 09:33:33 +00:00
Removed podcast placeholder
This commit is contained in:
parent
d5d06d3c0b
commit
362e31c450
3 changed files with 1 additions and 8 deletions
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
|
|
@ -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_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_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_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_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_library.xml" value="0.4865951742627346" />
|
||||||
<entry key="app/src/main/res/layout/fragment_login.xml" value="0.3166496424923391" />
|
<entry key="app/src/main/res/layout/fragment_login.xml" value="0.3166496424923391" />
|
||||||
|
|
|
||||||
|
|
@ -605,10 +605,8 @@ public class HomeFragment extends Fragment {
|
||||||
bind.newestPodcastsViewPager.setOffscreenPageLimit(1);
|
bind.newestPodcastsViewPager.setOffscreenPageLimit(1);
|
||||||
homeViewModel.getNewestPodcastEpisodes(requireActivity()).observe(requireActivity(), podcastEpisodes -> {
|
homeViewModel.getNewestPodcastEpisodes(requireActivity()).observe(requireActivity(), podcastEpisodes -> {
|
||||||
if (podcastEpisodes == null) {
|
if (podcastEpisodes == null) {
|
||||||
if (bind != null) bind.homeNewestPodcastsPlaceholder.placeholder.setVisibility(View.VISIBLE);
|
|
||||||
if (bind != null) bind.homeNewestPodcastsSector.setVisibility(View.GONE);
|
if (bind != null) bind.homeNewestPodcastsSector.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
if (bind != null) bind.homeNewestPodcastsPlaceholder.placeholder.setVisibility(View.GONE);
|
|
||||||
if (bind != null) bind.homeNewestPodcastsSector.setVisibility(!podcastEpisodes.isEmpty() ? View.VISIBLE : View.GONE);
|
if (bind != null) bind.homeNewestPodcastsSector.setVisibility(!podcastEpisodes.isEmpty() ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
podcastEpisodeAdapter.setItems(podcastEpisodes);
|
podcastEpisodeAdapter.setItems(podcastEpisodes);
|
||||||
|
|
|
||||||
|
|
@ -624,11 +624,6 @@
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:paddingBottom="8dp" />
|
android:paddingBottom="8dp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<include
|
|
||||||
android:id="@+id/home_newest_podcasts_placeholder"
|
|
||||||
layout="@layout/item_placehoder_discovery"
|
|
||||||
android:visibility="gone" />
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</androidx.core.widget.NestedScrollView>
|
</androidx.core.widget.NestedScrollView>
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue