1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-26 07:03:20 +00:00

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

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