Move sub icon visibility line

This commit is contained in:
Jaspann 2021-12-28 15:54:36 -05:00
parent fb3be544ce
commit 558c9147a2
1 changed files with 2 additions and 5 deletions

View File

@ -1521,6 +1521,8 @@ public final class VideoDetailFragment
animate(binding.detailThumbnailPlayButton, true, 200);
binding.detailVideoTitleView.setText(title);
binding.detailSubChannelThumbnailView.setVisibility(View.GONE);
if (!isEmpty(info.getSubChannelName())) {
displayBothUploaderAndSubChannel(info);
} else if (!isEmpty(info.getUploaderName())) {
@ -1648,11 +1650,6 @@ 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) {