Hide header view while loading (#7995)

This commit is contained in:
Hans-Peter Lehmann 2025-09-16 20:58:24 +02:00 committed by GitHub
parent af187ca551
commit 5afdf7c81b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,6 +119,7 @@ public class ItemFragment extends Fragment {
private ItemActionButton actionButton2;
private View noMediaLabel;
private View nonSubscribedWarningLabel;
private View header;
private Disposable disposable;
private PlaybackController controller;
@ -138,6 +139,8 @@ public class ItemFragment extends Fragment {
root = layout.findViewById(R.id.content_root);
header = layout.findViewById(R.id.header);
header.setVisibility(View.INVISIBLE);
txtvPodcast = layout.findViewById(R.id.txtvPodcast);
txtvPodcast.setOnClickListener(v -> openPodcast());
txtvTitle = layout.findViewById(R.id.txtvTitle);
@ -450,6 +453,7 @@ public class ItemFragment extends Fragment {
.observeOn(AndroidSchedulers.mainThread())
.subscribe(result -> {
progbarLoading.setVisibility(View.GONE);
header.setVisibility(View.VISIBLE);
item = result;
onFragmentLoaded();
itemsLoaded = true;