修改活动导致星级出现展示不出来的问题
This commit is contained in:
parent
94c5f4b809
commit
baa596158d
@ -1045,22 +1045,25 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
});
|
||||
}
|
||||
|
||||
public void showStart(StarChallengeStatusModel data) {
|
||||
public synchronized void showStart(StarChallengeStatusModel data) {
|
||||
boolean upData = false;
|
||||
if (mBannerList2 == null || mBannerList2.size() == 0) {
|
||||
mBannerList2 = new ArrayList<>();
|
||||
if (mBannerList2 != null && mBannerList2.size() == 0) {
|
||||
Log.e("PortraitLiveManager", "直接添加星级任务");
|
||||
BannerBean bannerBean = new BannerBean();
|
||||
bannerBean.setStart(true);
|
||||
bannerBean.setModel(data);
|
||||
mBannerList2.add(bannerBean);
|
||||
} else {
|
||||
Log.e("PortraitLiveManager", "遍历添加星级任务");
|
||||
for (BannerBean bean : mBannerList2) {
|
||||
if (bean.isStart()) {
|
||||
Log.e("PortraitLiveManager", "更新添加星级任务");
|
||||
bean.setModel(data);
|
||||
upData = true;
|
||||
}
|
||||
}
|
||||
if (!upData) {
|
||||
Log.e("PortraitLiveManager", "更新添加星级任务2");
|
||||
BannerBean bannerBean = new BannerBean();
|
||||
bannerBean.setStart(true);
|
||||
bannerBean.setModel(data);
|
||||
@ -1082,15 +1085,14 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
msgLayout.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
private void showBanner2() {
|
||||
if (mBannerList2 == null || mBannerList2.size() == 0 || mBanner2 == null) {
|
||||
Log.e("PortraitLiveManager", "加载不了");
|
||||
return;
|
||||
}
|
||||
private synchronized void showBanner2() {
|
||||
Log.e("PortraitLiveManager", "加载不了 mBannerList2 == null " + (mBannerList2 == null));
|
||||
Log.e("PortraitLiveManager", "加载不了 mBannerList2.size() == 0 " + (mBannerList2.size() == 0));
|
||||
Log.e("PortraitLiveManager", "加载不了 mBanner2 == null " + (mBanner2 == null));
|
||||
if (mBannerList2 != null && mBanner2 != null) {
|
||||
btn_event2.setVisibility(View.VISIBLE);
|
||||
|
||||
if (mBannerList2.size() == 1) {
|
||||
|
||||
Log.e("PortraitLiveManager", "加载一个的");
|
||||
mBanner2.setAutoPlay(false)
|
||||
.setPages(mBannerList2, new CustomViewHolder())
|
||||
.setDelayTime(3000)
|
||||
@ -1205,6 +1207,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 刷新UI
|
||||
*/
|
||||
@ -1231,14 +1235,12 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
mBannerList2.add(bannerBean);
|
||||
}
|
||||
}
|
||||
if (mBannerList2.isEmpty()) {
|
||||
btn_event2.setVisibility(View.GONE);
|
||||
mBanner2.setVisibility(View.GONE);
|
||||
}
|
||||
showBanner2();
|
||||
if (mBannerList2.size() > 0) {
|
||||
if (mBanner2.isStart()) {
|
||||
mBanner2.update(mBannerList2);
|
||||
} else {
|
||||
if (btn_event2 != null) {
|
||||
btn_event2.setVisibility(View.GONE);
|
||||
showBanner2();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -303,7 +303,6 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
LiveHttpUtil.cancel(LiveHttpConsts.ROOM_CHARGE);
|
||||
CommonHttpUtil.cancel(CommonHttpConsts.GET_BALANCE);
|
||||
CommonHttpUtil.cancel(LiveHttpConsts.GET_WISH_LIST);
|
||||
CommonHttpUtil.cancel("StarChallengeStatus");
|
||||
IMLoginManager.get(mContext).setisNewUserOne(false);
|
||||
//子线程执行退出操作
|
||||
exitLiveRoom();
|
||||
|
Loading…
Reference in New Issue
Block a user