fix:修复获取新人特惠未捕获异常问题

This commit is contained in:
zlzw 2022-08-24 11:40:11 +08:00
parent 97d7f23daf
commit 83aa1caf2b

View File

@ -61,6 +61,7 @@ import org.greenrobot.eventbus.ThreadMode;
import java.util.Locale;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.functions.Consumer;
import io.reactivex.schedulers.Schedulers;
/**
@ -374,11 +375,11 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
.observeOn(AndroidSchedulers.mainThread())
.subscribe(stringResponseModel -> {
NewPeopleInfo peopleInfo = stringResponseModel.getData().getInfo();
if(peopleInfo.getIsShow()){
if (peopleInfo.getIsShow()) {
liveNewPeople.setVisibility(View.VISIBLE);
newPeopleUrl=peopleInfo.getLink();
newPeopleUrl = peopleInfo.getLink();
}
}).isDisposed();
}, throwable -> throwable.printStackTrace()).isDisposed();
}
@Override