Skip to content

Commit 4d6e1a4

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

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
@@ -188,21 +188,21 @@ public final class VideoDetailFragment
188188
};
189189

190190
@State
191-
protected int serviceId = Constants.NO_SERVICE_ID;
191+
int serviceId = Constants.NO_SERVICE_ID;
192192
@State
193193
@NonNull
194-
protected String title = "";
194+
String title = "";
195195
@State
196196
@Nullable
197-
protected String url = null;
197+
String url = null;
198198
@Nullable
199-
protected PlayQueue playQueue = null;
199+
private PlayQueue playQueue = null;
200200
@State
201201
int bottomSheetState = BottomSheetBehavior.STATE_EXPANDED;
202202
@State
203203
int lastStableBottomSheetState = BottomSheetBehavior.STATE_EXPANDED;
204204
@State
205-
protected boolean autoPlayEnabled = true;
205+
boolean autoPlayEnabled = true;
206206

207207
@Nullable
208208
private StreamInfo currentInfo = null;
@@ -815,7 +815,7 @@ private void prepareAndHandleInfo(final StreamInfo info, final boolean scrollToT
815815

816816
}
817817

818-
protected void prepareAndLoadInfo() {
818+
private void prepareAndLoadInfo() {
819819
scrollToTop();
820820
startLoading(false);
821821
}
@@ -1337,10 +1337,10 @@ private void showContent() {
13371337
binding.detailContentRootHiding.setVisibility(View.VISIBLE);
13381338
}
13391339

1340-
protected void setInitialData(final int newServiceId,
1341-
@Nullable final String newUrl,
1342-
@NonNull final String newTitle,
1343-
@Nullable final PlayQueue newPlayQueue) {
1340+
private void setInitialData(final int newServiceId,
1341+
@Nullable final String newUrl,
1342+
@NonNull final String newTitle,
1343+
@Nullable final PlayQueue newPlayQueue) {
13441344
this.serviceId = newServiceId;
13451345
this.url = newUrl;
13461346
this.title = newTitle;

0 commit comments

Comments
 (0)