From 53f5741317ad00d376fd5a514d9e3f134478b7bb Mon Sep 17 00:00:00 2001 From: Jaspann Date: Sat, 25 Dec 2021 18:10:05 -0500 Subject: [PATCH] Fixes view of sub-channel icon when not in use --- .../schabi/newpipe/fragments/detail/VideoDetailFragment.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java index a5e590ba0..a393804df 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java @@ -1648,6 +1648,11 @@ public final class VideoDetailFragment binding.detailSubChannelTextView.setVisibility(View.VISIBLE); binding.detailSubChannelTextView.setSelected(true); binding.detailUploaderTextView.setVisibility(View.GONE); + + //No sub-channel name implies no sub-channel icon, but check just to make sure. + if(isEmpty(info.getSubChannelAvatarUrl())){ + binding.detailSubChannelThumbnailView.setVisibility(View.GONE); + } } private void displayBothUploaderAndSubChannel(final StreamInfo info) {