fix [关注按钮修复,直播状态跳转直播间,首页精彩直播位置展示问题,社区图片5张图片展示问题]

This commit is contained in:
hch
2024-03-27 16:58:01 +08:00
parent 79c691f5b2
commit 6b616a4ff8
6 changed files with 148 additions and 29 deletions

View File

@@ -263,9 +263,6 @@ public class VideoPlayWrapViewHolder extends AbsViewHolder implements View.OnCli
if (mVideoBean != null && mBtnFollow != null) {
String toUid = mVideoBean.getUser_id();
if (!TextUtils.isEmpty(toUid) && !toUid.equals(CommonAppConfig.getInstance().getUid())) {
if (mBtnFollow.getVisibility() != View.VISIBLE) {
mBtnFollow.setVisibility(View.VISIBLE);
}
if (bean.getIs_attention().equals("1")) {
mBtnFollow.setImageDrawable(mFollowDrawable);
} else {
@@ -277,20 +274,6 @@ public class VideoPlayWrapViewHolder extends AbsViewHolder implements View.OnCli
}
}
}
if (!Constants.myUid.endsWith(bean.getUser_id())) {
if (bean.getIs_attention().equals("2")) {
mBtnFollow.setVisibility(View.VISIBLE);
if (bean.getIs_attention().equals("1")) {
mBtnFollow.setImageDrawable(mFollowDrawable);
} else {
mBtnFollow.setImageDrawable(mUnFollowDrawable);
}
} else {
mBtnFollow.setVisibility(View.GONE);
}
} else {
mBtnFollow.setVisibility(View.GONE);
}
if (!StringUtil.isEmpty(bean.getTalk_name())) {
List<String> tagList = new ArrayList<>();
tagList.add("#" + bean.getTalk_name());