diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveAnchorEditCallMeDialog.java b/live/src/main/java/com/yunbao/live/dialog/LiveAnchorEditCallMeDialog.java
index c78ad3c1e..db1a1bf88 100644
--- a/live/src/main/java/com/yunbao/live/dialog/LiveAnchorEditCallMeDialog.java
+++ b/live/src/main/java/com/yunbao/live/dialog/LiveAnchorEditCallMeDialog.java
@@ -110,14 +110,22 @@ public class LiveAnchorEditCallMeDialog extends AbsDialogPopupWindow {
} else if (bean.getType() == LiveAnchorEditCallMeAdapter.TYPE_APP_WHATSAPP) {
callMeModel.setWhatsApp(new LiveAnchorCallMeModel.AppBean(bean.getValue(), bean.getStatus()));
}
+ if (callMeModel.getWechat().getIsShow() == 0 && callMeModel.getLine().getIsShow() == 0 && callMeModel.getWhatsApp().getIsShow() == 0) {
+ status.setImageResource(R.mipmap.special_icon_off);
+ status.setTag(0);
+ }
}
});
status.setTag(0);
status.setOnClickListener(v -> {
- if(callMeModel.getGiftId()==0){
+ if (callMeModel.getGiftId() == 0) {
ToastUtil.show(R.string.live_anchor_edit_call_me_not_gift_toash);
return;
}
+ if (callMeModel.getWechat().getIsShow() == 0 && callMeModel.getLine().getIsShow() == 0 && callMeModel.getWhatsApp().getIsShow() == 0) {
+ ToastUtil.show(R.string.live_anchor_edit_call_me_not_call_info_toash);
+ return;
+ }
int tag = (int) v.getTag();
if (tag == 0) {
status.setImageResource(R.mipmap.special_icon_on);
diff --git a/live/src/main/res/values-en/strings.xml b/live/src/main/res/values-en/strings.xml
index acd2578d8..a357af960 100644
--- a/live/src/main/res/values-en/strings.xml
+++ b/live/src/main/res/values-en/strings.xml
@@ -89,4 +89,5 @@
Delete
Think again
Letter
+ Please turn on at least one contact information
\ No newline at end of file
diff --git a/live/src/main/res/values/strings.xml b/live/src/main/res/values/strings.xml
index 4771c26a3..50e8ee84b 100644
--- a/live/src/main/res/values/strings.xml
+++ b/live/src/main/res/values/strings.xml
@@ -75,6 +75,7 @@
未填寫
请填写联系方式后再启用
未選擇禮物
+ 請開啟至少一個聯繫方式
信內容
我能想到最浪漫的事,就是和你一起慢慢變老,一路上收藏點點滴滴的歡笑,留到以後坐著搖椅慢慢聊。
聯繫方式