fix:修复获取新人特惠未捕获异常问题
This commit is contained in:
parent
97d7f23daf
commit
83aa1caf2b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user