修复多人PK不会隐藏女神说和联系方式的问题
This commit is contained in:
parent
6ff83dabff
commit
14490cacfa
@ -306,7 +306,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
private List<BannerBean> mBannerList2 = new ArrayList<>();
|
private List<BannerBean> mBannerList2 = new ArrayList<>();
|
||||||
private List<BannerBean> mBannerList3 = new ArrayList<>();
|
private List<BannerBean> mBannerList3 = new ArrayList<>();
|
||||||
private List<BannerBean> mBannerList4 = new ArrayList<>();
|
private List<BannerBean> mBannerList4 = new ArrayList<>();
|
||||||
private List<BannerBean> mTopBannerList = new ArrayList<>();
|
private List<BannerBean> mTopBannerList = null;
|
||||||
private LinearLayout btn_event2, btn_event3, btn_event4, enterRoomLeave2;
|
private LinearLayout btn_event2, btn_event3, btn_event4, enterRoomLeave2;
|
||||||
private ImageView imgEvent;
|
private ImageView imgEvent;
|
||||||
private View btnEvent;
|
private View btnEvent;
|
||||||
@ -1316,7 +1316,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
mBannerList2.clear();
|
mBannerList2.clear();
|
||||||
mBannerList3.clear();
|
mBannerList3.clear();
|
||||||
mBannerList4.clear();
|
mBannerList4.clear();
|
||||||
|
if (mTopBannerList != null) {
|
||||||
mTopBannerList.clear();
|
mTopBannerList.clear();
|
||||||
|
}
|
||||||
sayModel = null;
|
sayModel = null;
|
||||||
updataCleanMic();
|
updataCleanMic();
|
||||||
// initStarChallengeStatus();
|
// initStarChallengeStatus();
|
||||||
@ -4285,11 +4287,13 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
String s1 = StringUtil.getDurationText(mPkTimeCount * 1000);
|
String s1 = StringUtil.getDurationText(mPkTimeCount * 1000);
|
||||||
textTime.setText(String.format(mContext.getString(R.string.pk_time), s1));
|
textTime.setText(String.format(mContext.getString(R.string.pk_time), s1));
|
||||||
countdownHandler.postAtTime(countdownRunnable, getNextSecondTime());
|
countdownHandler.postAtTime(countdownRunnable, getNextSecondTime());
|
||||||
|
hideAnchorSayAndCallAnchor();
|
||||||
} else {
|
} else {
|
||||||
timeTitle.setVisibility(View.GONE);
|
timeTitle.setVisibility(View.GONE);
|
||||||
countdownHandler.removeCallbacks(countdownRunnable);
|
countdownHandler.removeCallbacks(countdownRunnable);
|
||||||
Bus.get().post(new LiveAudienceEvent()
|
Bus.get().post(new LiveAudienceEvent()
|
||||||
.setType(LiveAudienceEvent.LiveAudienceType.PK_TIME_COUNT));
|
.setType(LiveAudienceEvent.LiveAudienceType.PK_TIME_COUNT));
|
||||||
|
showAnchorSayAndCallAnchor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -4503,7 +4507,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void updateTopBanner() {
|
public void updateTopBanner() {
|
||||||
if (!TextUtils.isEmpty(wishListProgress.getWishlistName())||!TextUtils.isEmpty(wishListProgress.getWishlistProgress())) {
|
if (!TextUtils.isEmpty(wishListProgress.getWishlistName()) || !TextUtils.isEmpty(wishListProgress.getWishlistProgress())) {
|
||||||
if (mTopBannerList == null) {
|
if (mTopBannerList == null) {
|
||||||
mTopBannerList = new ArrayList<>();
|
mTopBannerList = new ArrayList<>();
|
||||||
}
|
}
|
||||||
@ -4526,7 +4530,12 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
|
|
||||||
public void initTopBanner() {
|
public void initTopBanner() {
|
||||||
checkNewLetter();
|
checkNewLetter();
|
||||||
|
if (mTopBannerList == null) {
|
||||||
mTopBannerList = new ArrayList<>();
|
mTopBannerList = new ArrayList<>();
|
||||||
|
}
|
||||||
|
if (!mTopBannerList.isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
topBanner1.setVisibility(View.GONE);
|
topBanner1.setVisibility(View.GONE);
|
||||||
topBanner1.setAutoPlay(true)
|
topBanner1.setAutoPlay(true)
|
||||||
.setPages(mTopBannerList, new TopBannerCustomViewHolder())
|
.setPages(mTopBannerList, new TopBannerCustomViewHolder())
|
||||||
|
Loading…
Reference in New Issue
Block a user