Fixes view of sub-channel icon when not in use

This commit is contained in:
Jaspann 2021-12-25 18:10:05 -05:00
parent 215880207e
commit 53f5741317
1 changed files with 5 additions and 0 deletions

View File

@ -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) {