Skip to content

Commit 969f59a

Browse files
committed
VideoDetailFragment: apply visibility suggestions
Because the class is final, protected does not make sense (Android Studio auto-suggestions)
1 parent b9eeee8 commit 969f59a

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -190,21 +190,21 @@ public final class VideoDetailFragment
190190
};
191191

192192
@State
193-
protected int serviceId = Constants.NO_SERVICE_ID;
193+
int serviceId = Constants.NO_SERVICE_ID;
194194
@State
195195
@NonNull
196-
protected String title = "";
196+
String title = "";
197197
@State
198198
@Nullable
199-
protected String url = null;
199+
String url = null;
200200
@Nullable
201-
protected PlayQueue playQueue = null;
201+
private PlayQueue playQueue = null;
202202
@State
203203
int bottomSheetState = BottomSheetBehavior.STATE_EXPANDED;
204204
@State
205205
int lastStableBottomSheetState = BottomSheetBehavior.STATE_EXPANDED;
206206
@State
207-
protected boolean autoPlayEnabled = true;
207+
boolean autoPlayEnabled = true;
208208

209209
@Nullable
210210
private StreamInfo currentInfo = null;
@@ -806,7 +806,7 @@ private void prepareAndHandleInfo(final StreamInfo info, final boolean scrollToT
806806

807807
}
808808

809-
protected void prepareAndLoadInfo() {
809+
private void prepareAndLoadInfo() {
810810
scrollToTop();
811811
startLoading(false);
812812
}
@@ -1328,10 +1328,10 @@ private void showContent() {
13281328
binding.detailContentRootHiding.setVisibility(View.VISIBLE);
13291329
}
13301330

1331-
protected void setInitialData(final int newServiceId,
1332-
@Nullable final String newUrl,
1333-
@NonNull final String newTitle,
1334-
@Nullable final PlayQueue newPlayQueue) {
1331+
private void setInitialData(final int newServiceId,
1332+
@Nullable final String newUrl,
1333+
@NonNull final String newTitle,
1334+
@Nullable final PlayQueue newPlayQueue) {
13351335
this.serviceId = newServiceId;
13361336
this.url = newUrl;
13371337
this.title = newTitle;

0 commit comments

Comments
 (0)