1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-06-29 08:32:57 +00:00

VideoDetailFragment: apply visibility suggestions

Because the class is final, protected does not make sense (Android
Studio auto-suggestions)
This commit is contained in:
Profpatsch 2024-12-26 16:46:03 +01:00
parent a5813f256a
commit 83486402df

View File

@ -188,21 +188,21 @@ public final class VideoDetailFragment
}; };
@State @State
protected int serviceId = Constants.NO_SERVICE_ID; int serviceId = Constants.NO_SERVICE_ID;
@State @State
@NonNull @NonNull
protected String title = ""; String title = "";
@State @State
@Nullable @Nullable
protected String url = null; String url = null;
@Nullable @Nullable
protected PlayQueue playQueue = null; private PlayQueue playQueue = null;
@State @State
int bottomSheetState = BottomSheetBehavior.STATE_EXPANDED; int bottomSheetState = BottomSheetBehavior.STATE_EXPANDED;
@State @State
int lastStableBottomSheetState = BottomSheetBehavior.STATE_EXPANDED; int lastStableBottomSheetState = BottomSheetBehavior.STATE_EXPANDED;
@State @State
protected boolean autoPlayEnabled = true; boolean autoPlayEnabled = true;
@Nullable @Nullable
private StreamInfo currentInfo = null; private StreamInfo currentInfo = null;
@ -815,7 +815,7 @@ public final class VideoDetailFragment
} }
protected void prepareAndLoadInfo() { private void prepareAndLoadInfo() {
scrollToTop(); scrollToTop();
startLoading(false); startLoading(false);
} }
@ -1337,10 +1337,10 @@ public final class VideoDetailFragment
binding.detailContentRootHiding.setVisibility(View.VISIBLE); binding.detailContentRootHiding.setVisibility(View.VISIBLE);
} }
protected void setInitialData(final int newServiceId, private void setInitialData(final int newServiceId,
@Nullable final String newUrl, @Nullable final String newUrl,
@NonNull final String newTitle, @NonNull final String newTitle,
@Nullable final PlayQueue newPlayQueue) { @Nullable final PlayQueue newPlayQueue) {
this.serviceId = newServiceId; this.serviceId = newServiceId;
this.url = newUrl; this.url = newUrl;
this.title = newTitle; this.title = newTitle;