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 6519973e2..1b15c4aa6 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -349,16 +349,16 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis updataCleanMic(); //拿到原始数据 for (int i = 0; i < list.size(); i++) { - LinkMicUserBean bean=list.get(i); - if(i==1){ + LinkMicUserBean bean = list.get(i); + if (i == 1) { mic_view.setVisibility(View.VISIBLE); mic_ids.add(bean.getId()); ImgLoader.display2(Contexts, bean.getAvatar(), mic_ico); - }else if(i==2){ + } else if (i == 2) { mic_view1.setVisibility(View.VISIBLE); mic_ids.add(bean.getId()); ImgLoader.display2(Contexts, bean.getAvatar(), mic_ico1); - }else if(i==3){ + } else if (i == 3) { mic_view2.setVisibility(View.VISIBLE); mic_ids.add(bean.getId()); ImgLoader.display2(Contexts, bean.getAvatar(), mic_ico2); @@ -2713,6 +2713,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis ((LiveAudienceActivity) mContext).openFansMedalOkWindow(); } + if (!isAncher && bean.getGiftName().equals("粉絲牌")) { + LiveAudienceActivity.is_fans = "1"; + } Log.i("tvss", bean.getDrpk_status() + "是" + mLiveUid + "vsss" + bean.getRoomnum()); if (mLiveGiftAnimPresenter == null) { mLiveGiftAnimPresenter = new LiveGiftAnimPresenter(mContext, mContentView, mGifImageView, mSVGAImageView, mLiveGiftPrizePoolContainer, windowManager); @@ -3171,7 +3174,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis if (taskModel != null) { GiftModel giftModel = newPeopleTask.getGift(); - if (giftModel!=null){ + if (giftModel != null) { RewardAllModel rewardOne = newPeopleTask.getRewardOne(); String gold = rewardOne.getGold(); String experience = rewardOne.getExperience(); @@ -3582,7 +3585,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis .setMicIng(2) .setBean(liveBean).setLiveType(liveType).setLiveTypeVal(Integer.parseInt(liveTypeVal))); } else { - if(MicStatusManager.getInstance().isMic(liveUid)){ + if (MicStatusManager.getInstance().isMic(liveUid)) { MicStatusManager.getInstance().showDownMicDialog(mContext); return; }