fix [修复-个人主页-标签颜色问题,视频点赞数量+1问题]

This commit is contained in:
hch 2024-03-28 15:23:43 +08:00
parent 4f590a78a8
commit 1d9930ed26
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,7 @@
android:paddingEnd="15dp"
android:paddingBottom="5dp"
android:text="标签"
android:textColor="@color/black2"
android:textColor="#C38764"
android:textSize="11dp" />
</LinearLayout>

View File

@ -441,6 +441,7 @@ public class VideoPlayWrapViewHolder extends AbsViewHolder implements View.OnCli
}
String isLike = mVideoBean.getIs_love().equals("1") ? "0" : "1";
mVideoBean.setIs_love(isLike);
mLikeNum.setText(String.valueOf(mVideoBean.getLove_num()));
EventBus.getDefault().post(new VideoLikeEvent(mVideoBean.getId(), Integer.parseInt(mVideoBean.getIs_love()), mVideoBean.getLove_num()));
if (mVideoBean.getIs_love().equals("1")) {
mBtnLike.setImageResource(R.mipmap.icon_video_zan_new02);