diff --git a/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java index 0c81c8b10..91059625f 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java @@ -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