调整礼物UI
新增新人签到弹框
This commit is contained in:
@@ -81,7 +81,7 @@ public class MainHomeLiveViewHolder extends AbsMainHomeChildViewHolder implement
|
||||
private int intoIndex = 0;
|
||||
private List<LiveBean> new_data;
|
||||
private boolean isHave = false;
|
||||
private Map<String,String> gotoRoomKey=new HashMap<>();
|
||||
private Map<String, String> gotoRoomKey = new HashMap<>();
|
||||
|
||||
public MainHomeLiveViewHolder(Context context, ViewGroup parentView) {
|
||||
super(context, parentView);
|
||||
@@ -315,10 +315,10 @@ public class MainHomeLiveViewHolder extends AbsMainHomeChildViewHolder implement
|
||||
return;
|
||||
}
|
||||
intoIndex = 1;
|
||||
if(gotoRoomKey.isEmpty()){
|
||||
gotoRoomKey=null;
|
||||
if (gotoRoomKey.isEmpty()) {
|
||||
gotoRoomKey = null;
|
||||
}
|
||||
LiveAudienceActivity.forward(mContext, liveBean, liveType, liveTypeVal, "",gotoRoomKey, 0, liveSdk);
|
||||
LiveAudienceActivity.forward(mContext, liveBean, liveType, liveTypeVal, "", gotoRoomKey, 0, liveSdk);
|
||||
|
||||
}
|
||||
});
|
||||
@@ -351,8 +351,13 @@ public class MainHomeLiveViewHolder extends AbsMainHomeChildViewHolder implement
|
||||
BannerBean bean = mBannerList.get(p);
|
||||
if (bean != null) {
|
||||
String link = bean.getLink();
|
||||
if(bean.getType()==2){
|
||||
gotoRoomKey.put("OPEN","NEWUSER");
|
||||
if (bean.getType() == 2) {
|
||||
if (bean.getLink().isEmpty()) {
|
||||
ToastUtil.show("暫無法簽到,請稍後再試");
|
||||
return;
|
||||
} else {
|
||||
gotoRoomKey.put("OPEN", "NEWUSER");
|
||||
}
|
||||
}
|
||||
if (link.contains("http")) {
|
||||
WebViewActivity.forward(mContext, link, true);
|
||||
|
||||
Reference in New Issue
Block a user