diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index c8ca03de4..7e990e028 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -102,7 +102,6 @@ import com.yunbao.common.utils.SVGAViewUtils; import com.yunbao.common.utils.ScreenDimenUtil; import com.yunbao.common.utils.SpUtil; import com.yunbao.common.utils.StringUtil; -import com.yunbao.common.utils.ToastUtil; import com.yunbao.common.utils.WordUtil; import com.yunbao.common.utils.formatBigNum; import com.yunbao.common.views.AbsViewHolder; @@ -463,7 +462,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } } + private static boolean visibility; + public void hotAddVisibility(boolean visibility) { + this.visibility = visibility; ft_hot_add.setVisibility(visibility ? View.GONE : View.VISIBLE); } @@ -3174,9 +3176,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis /** * 获取是否有热度卡加成 */ - public static void getIsHot(String isUseHotCard) { + public void getIsHot(String isUseHotCard) { ImgLoader.display2(Contexts, "https://downs.yaoulive.com/img_hot_gif.gif", img_hot_gif); - if ("1".equals(isUseHotCard)) { + if ("1".equals(isUseHotCard) && !visibility) { ft_hot_add.setVisibility(View.VISIBLE); } else { ft_hot_add.setVisibility(View.GONE);