Skip to content

Commit 53f5741

Browse files
committed
Fixes view of sub-channel icon when not in use
1 parent 2158802 commit 53f5741

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,6 +1648,11 @@ private void displayUploaderAsSubChannel(final StreamInfo info) {
16481648
binding.detailSubChannelTextView.setVisibility(View.VISIBLE);
16491649
binding.detailSubChannelTextView.setSelected(true);
16501650
binding.detailUploaderTextView.setVisibility(View.GONE);
1651+
1652+
//No sub-channel name implies no sub-channel icon, but check just to make sure.
1653+
if(isEmpty(info.getSubChannelAvatarUrl())){
1654+
binding.detailSubChannelThumbnailView.setVisibility(View.GONE);
1655+
}
16511656
}
16521657

16531658
private void displayBothUploaderAndSubChannel(final StreamInfo info) {

0 commit comments

Comments
 (0)