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