update 联系方式

This commit is contained in:
zlzw 2023-03-29 13:39:09 +08:00
parent c78bb79633
commit c22da60b82

View File

@ -4312,6 +4312,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
public void initTopBanner() { public void initTopBanner() {
checkNewLetter(); checkNewLetter();
mTopBannerList = new ArrayList<>(); mTopBannerList = new ArrayList<>();
topBanner1.setVisibility(View.GONE);
topBanner1.setAutoPlay(true) topBanner1.setAutoPlay(true)
.setPages(mTopBannerList, new Banner4CustomViewHolder()) .setPages(mTopBannerList, new Banner4CustomViewHolder())
.setDelayTime(3000) .setDelayTime(3000)
@ -4327,7 +4328,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
checkNewLetter(); checkNewLetter();
} }
); );
fragment.setOnShowListener(dialog -> mHandler.postDelayed(loading::dismiss,500)); fragment.setOnShowListener(dialog -> mHandler.postDelayed(loading::dismiss, 500));
Bundle bundle = new Bundle(); Bundle bundle = new Bundle();
bundle.putString(Constants.LIVE_UID, mLiveUid); bundle.putString(Constants.LIVE_UID, mLiveUid);
bundle.putString(Constants.LIVE_STREAM, mStream); bundle.putString(Constants.LIVE_STREAM, mStream);
@ -4344,12 +4345,15 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
@Override @Override
public void onSuccess(LiveAnchorCallMeModel data) { public void onSuccess(LiveAnchorCallMeModel data) {
System.out.println(">>>>> 获取联系方式:" + data); System.out.println(">>>>> 获取联系方式:" + data);
if (data.getIsShow() == 1) {
topBanner1.setVisibility(View.VISIBLE);
BannerBean call = new BannerBean(); BannerBean call = new BannerBean();
call.setIconRes(R.mipmap.ic_live_float_call_me); call.setIconRes(R.mipmap.ic_live_float_call_me);
call.setActivityId(data.getGiftId()); call.setActivityId(data.getGiftId());
call.setType(TOP_BANNER_TYPE_CALL_ME); call.setType(TOP_BANNER_TYPE_CALL_ME);
mTopBannerList.add(0, call); mTopBannerList.add(0, call);
topBanner1.update(mTopBannerList); topBanner1.update(mTopBannerList);
}
} }