修复设置女神说刷新问题

This commit is contained in:
Martin 2024-09-03 15:48:14 +08:00
parent b7a96d9b1d
commit bee903d22a
2 changed files with 10 additions and 2 deletions

View File

@ -35,6 +35,8 @@ public class LiveOpenCustomPopup extends BottomPopupView {
private int status_say, status_call;
private Context mContext;
public LiveOpenCustomPopup setClassBean(LiveClassBean classBean) {
this.classBean = classBean;
textLiveClass.setText(classBean.getName());
@ -48,6 +50,7 @@ public class LiveOpenCustomPopup extends BottomPopupView {
public LiveOpenCustomPopup(@NonNull Context context, int selectClarity, LiveClassBean classBean, LiveRoomTypeBean liveRoomTypeBean) {
super(context);
this.mContext = context;
this.selectClarity = selectClarity;
this.classBean = classBean;
this.liveRoomTypeBean = liveRoomTypeBean;
@ -167,7 +170,7 @@ public class LiveOpenCustomPopup extends BottomPopupView {
}
public void initDate() {
textSay.setText(status_say == 1 ? R.string.do_set : R.string.not_set);
textSay.setText(IMLoginManager.get(mContext).getAnchorSayStatus() == 1 ? R.string.do_set : R.string.not_set);
textCall.setText(status_call == 1 ? R.string.robot_yes : R.string.robot_no);
LiveNetManager.get(getContext())
.getLiveStetUpStatus(String.valueOf(IMLoginManager.get(getContext()).getUserInfo().getId()),

View File

@ -174,10 +174,10 @@ public class LiveAnchorSayPopDialog extends AbsDialogPopupWindow {
}
}
);
IMLoginManager.get(getContext()).setAnchorSayStatus(sayModel.getLivePreview().getIsShow());
if (onItemClickListener != null) {
onItemClickListener.onItemClick(sayModel, 0);
}
IMLoginManager.get(getContext()).setAnchorSayStatus(sayModel.getLivePreview().getIsShow());
}
private void initData() {
@ -209,4 +209,9 @@ public class LiveAnchorSayPopDialog extends AbsDialogPopupWindow {
}
});
}
public interface OnDismissListener{
void onDismiss();
}
}