修复主页classtab可能为空导致的闪退问题(报错平台反馈)
This commit is contained in:
parent
0c7ae4e4f7
commit
ef76b2c7e4
@ -829,7 +829,7 @@ public class IMLoginModel extends BaseModel {
|
|||||||
return yuanbao;
|
return yuanbao;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMLoginModel setYuanbao(long yuanbao) {
|
public IMLoginModel setYuanbao(double yuanbao) {
|
||||||
this.yuanbao = yuanbao;
|
this.yuanbao = yuanbao;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,7 @@ import com.yunbao.common.utils.MicStatusManager;
|
|||||||
import com.yunbao.common.utils.RouteUtil;
|
import com.yunbao.common.utils.RouteUtil;
|
||||||
import com.yunbao.common.utils.StringUtil;
|
import com.yunbao.common.utils.StringUtil;
|
||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
|
import com.yunbao.common.utils.WordUtil;
|
||||||
import com.yunbao.common.views.CustomViewHolder;
|
import com.yunbao.common.views.CustomViewHolder;
|
||||||
import com.yunbao.live.utils.LiveStorge;
|
import com.yunbao.live.utils.LiveStorge;
|
||||||
import com.yunbao.live.views.LiveRoomViewHolder;
|
import com.yunbao.live.views.LiveRoomViewHolder;
|
||||||
@ -129,8 +130,10 @@ public class MainHomeLiveViewHolder extends AbsMainHomeChildViewHolder implement
|
|||||||
@Override
|
@Override
|
||||||
public void init() {
|
public void init() {
|
||||||
List<LiveClassBean> list = new LiveClassManager(mContext).getLiveClass();
|
List<LiveClassBean> list = new LiveClassManager(mContext).getLiveClass();
|
||||||
|
if (list != null && !list.isEmpty()) {
|
||||||
typeHot = list.get(0).getEnglish();
|
typeHot = list.get(0).getEnglish();
|
||||||
select = list.get(0).getId();
|
select = list.get(0).getId();
|
||||||
|
}
|
||||||
mShadow = findViewById(R.id.shadow);
|
mShadow = findViewById(R.id.shadow);
|
||||||
mBtnDismiss = findViewById(R.id.btn_dismiss);
|
mBtnDismiss = findViewById(R.id.btn_dismiss);
|
||||||
mBtnDismiss.setOnClickListener(new View.OnClickListener() {
|
mBtnDismiss.setOnClickListener(new View.OnClickListener() {
|
||||||
|
Loading…
Reference in New Issue
Block a user