fix:修复获取新人特惠未捕获异常问题
This commit is contained in:
parent
97d7f23daf
commit
83aa1caf2b
@ -61,6 +61,7 @@ import org.greenrobot.eventbus.ThreadMode;
|
|||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import io.reactivex.android.schedulers.AndroidSchedulers;
|
import io.reactivex.android.schedulers.AndroidSchedulers;
|
||||||
|
import io.reactivex.functions.Consumer;
|
||||||
import io.reactivex.schedulers.Schedulers;
|
import io.reactivex.schedulers.Schedulers;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -374,11 +375,11 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe(stringResponseModel -> {
|
.subscribe(stringResponseModel -> {
|
||||||
NewPeopleInfo peopleInfo = stringResponseModel.getData().getInfo();
|
NewPeopleInfo peopleInfo = stringResponseModel.getData().getInfo();
|
||||||
if(peopleInfo.getIsShow()){
|
if (peopleInfo.getIsShow()) {
|
||||||
liveNewPeople.setVisibility(View.VISIBLE);
|
liveNewPeople.setVisibility(View.VISIBLE);
|
||||||
newPeopleUrl=peopleInfo.getLink();
|
newPeopleUrl = peopleInfo.getLink();
|
||||||
}
|
}
|
||||||
}).isDisposed();
|
}, throwable -> throwable.printStackTrace()).isDisposed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user